NVMProgram() (d.)
Hi, Has anyone used this library function? The documentation doesn't explain what pagebuff[]. I found this in a PIC32X example: unsigned int pagebuff; // Write the pagebuff data to NVM_PROGRAM_PAGE +...
View ArticleHarmony 1.02 problem with SPI3 automatic code (Vathek)
Hello,I faced a problem in automatic code generated from Harmony 1.02 (within MPLABX and XC32 1.34). When enabling SPI3 on interrupt on a PIC32MX795128L the following code is generated: void...
View ArticleXC32 v1.34 Bug? "Persistent" attribute appears to be ignored (jdeguire)
The device is a PIC32MX795F512L and this bug appears on XC32 v1.34 and v1.33. It does not appear on v1.21. Our code uses a persistent struct to communicate data between our application and bootloader....
View ArticlePIC32MX230F064B SD Card Problems (ArmstrongSubero)
I am frustrated. For five day's I've been trying to get a PIC32MX230F064B to write to an SD card. I tried the examples in "Programming 32 bit Microcontrollers in C", I tried the MDDFS system. I tried...
View ArticleCompilation error when using "UARTSetLineControl, UARTSetDataRate and...
Hi everybody I'm getting a compilation error when I try to use "UARTSetLineControl, UARTSetDataRate and UARTEnable". This because I want to use UART 4 on my PIC32 and the legacy uart lib does not...
View ArticleUsing Math in and out interrupt (pittotto25)
Hello everyone, a Hamlet question haunts me. I need to use the math libraries in and out of an interrupt routine. I will surely have problems? or I can use some optimization that allows me to duplicate...
View ArticleFind a crash source (mystery123)
Hi, is there an easy way to find crash source when debugging in MPlabX? I use PIC32MZ2048ECH144 on Starter Kit, debugging over USB. But when the firmware crashes, there's just Target Halted or in the...
View ArticleLinker changes to vector allocation (friesen)
Is there some comprehensive list of linker changes? I see that going from 1.31 to 1.32 there are some unhandy changes going on. I have a custom script and am using a single vector to gain more...
View ArticleCAN extended frame (edwinslv)
I am using a PIC32MX7 trying to set up an CAN extended frame to use CAN ids with 29 bits. If I want this node ID to be 5110, can I use the following? According to the data sheet, SID is only 11 bits....
View ArticlePassing pin assignment from function call (Alkirah)
Hello, this might be a really stupid question but I have no idea if it's doable or not. I have 4 sensors, that use a onewire protocol. I don't want to use switch/case or ifs to know what of the 4 pins...
View ArticleVerify failed (Davey)
Hi, I have taken over a PIC32 based project but I am having trouble building a correct hex file. There are no errors or warnings during the actual build but when I try to program it to our device I get...
View ArticleImplementing own IO primitives (open, close, read, write) for standard IO...
Hello,I'm trying implement low IO functions (like open, read, write etc) for use it with a standard stream IO API (fopen, fread, fwrite etc) provided with stdio.h. Durning tests I figured out that...
View Articlemicrochip pic 32 (shiran shamir)
hi,i need some help wit starting programming to this chip..what software and compiler should i get (is it free? ) how to open a new project..i downloaded mplab x ide software and compiler for pic 32...
View ArticleArrays of objects with virtual member functions (rmike)
Arrays of objects with virtual member functions are sometimes allocated as a single object. In other words, every member of the array has the exact same address (This does not seem to be absolutely...
View ArticlePIC32MX570F512L interrupt problem (Hycode)
Hi! The interruption doesn't work in the simulator by PICMX570F512L. However, it works by PIC32MX795F512L.I use MPLAB X IDE v2.35, XC32 v1.34. #include #include #include #include #def..
View ArticleIPLxSRS and L1 Cache on PIC32MZ (aschen0866)
I am having a strange issue that seems to involve IPLxSRS and L1 Cache on a PIC32MZ2048ECH100. The problem appears that my Core Timer based delay routine doesn't work right. Every once a while, the...
View ArticleCan a 64-bit float be printed to a string? And what is the precision? (rgroner)
I have a 64-bit float in my code (long double). I'm trying simply to convert it to a string so I can output it (for verification). I'm using MPLABX 2.35 with XC1.33 on a PIC32MX795F512L on Windows 7...
View Articlepragma FCANIO config error (sebastien.decorme)
Hi,I'm usin XC32(free) and 32MX795F512HWhen I try to compile with this line#pragma config FCANIO = OFF // CAN I/O Pin Select (Alternate CAN I/O)I've this errorerror: unknown configuration setting:...
View ArticleInit of const structure in flash fail (MKC)
Init of const at flash address fails, it is even removed from the *.map file and according the variables in the debugger it is located at address 0x0000-0000. Using linker script btl_p32MZ.ld from the...
View ArticleXC32 - V1.33 - Memcpy of 2 bytes optimizes to LHU breaks when address is not...
With Optimizations set to 1, the following line (and nvp_id_type has a sizeof() 2) memcpy ((Uint8*) &nvp_id, (Uint8 *) nvp_list, sizeof (nvp_id_type)); gets optimized to: LHU S1, 0(S2) Kodos for...
View Article