RE: PIC32 and ICD2
I got the same error.
I found, that all was OK if I:
- don't use 'Configuration bits set in Code'
Instead use: Reset to default, then set the configuration manualy
The difference is:
Bit 31 of CONFIG0
As from the DatatSheet this is the only bit that is readonly and 0 (all others are 1 by default)
The compiler (C32) doesn't do this right, he always set this bit to 1
So when You compile the configuration dialog shows:
1FC0_2FFC F... instead of 7...
I do some checks what has changed between C32 V1.01 and V1.02 and fpund the problem inside
... Microchip\MPLAB C32\pic32mx\lib\proc\32MX360F512L\configuration.data
I am not realy shure how the syntax inside this files is, but by changing the line:
the compiler generates the correct values for the configuration area.
It looks like the 2. and 3. entry define a mask & a default value, because in former versions of this file (and the files for other devices)
These values contain a '1' only for 'used' configs bits...
Hope Mircosoft will give an explanation/ correction of the compiler.
I will add a web-ticket with a link to this thread.