Posted on May 17, 2011 at 13:46Hi, Clive1 is right... as usual ;) I had the same problem few weeks ago and changed the initialization order given in the example. The ''array swapping values'' phenomenon disappeared.
Posted on May 17, 2011 at 13:45Hi rost, yes, from PM0042: <<2.4.1 Read protection The read protection is activated by setting the RDP option byte and then, by applying a system reset to reload the new RDP option byte. Note: If the read protection is...
Posted on May 17, 2011 at 13:45@damnh: the difference shouldn't mater, otherwise we got bigger problem with the micro and/or the compiler... @clive1 after some experiments I've seen that the NVIC_SystemReset works only if I'm not debugging. Same fo...
Posted on May 17, 2011 at 13:45Hi damnh, the NVIC_SystemReset also uses the __DSB, the while loop is after that...static __INLINE void NVIC_SystemReset(void) { SCB->AIRCR = (NVIC_AIRCR_VECTKEY | (SCB->AIRCR & (0x700)) | (1<<NVIC_SYSRESETREQ)); /*...
Posted on May 17, 2011 at 13:45Hi Clive, I need a bit of elaboration here... <<I've always used NVIC_GenerateSystemReset();>> It doesn't seems to be available anymore in the library, but I guess the just change the name to NVIC_SystemReset(). <<it ...