Re: POR when hitting a break point
It's what I'm seeing in the RCON register, both POR and BOR bits are set and the watchdog and dead man timers are not enabled. If I clear the RCON register after the reset and then check them at the beginning of main after another reset caused by the breakpoint trugger POR and BOR are set.
At this point everything points to a BOR, but I'm not sure if this is the real cause of the reset considering I cannot measure the problem on any of the VDD pins using a high BW oscilloscope. The code will run without any problems as long as none of the break points are triggered as soon as the break point is triggers the PIC32 resets and notes the cause of the reset as a BOR and POR.
I know what starts the problem but I still don't know what causes it to go from break point trigger to BOR.