I am using the
#define BOOT_FORCE_DEFAULT_VALUE1 0x929E1424 #define BOOT_FORCE_VALUE1 ('B' << 24 | 'O' << 16 | 'O' << 8 | 'T') #define BOOT_FORCE_OFFSET1 0x01FC flashc_memset32(AVR32_FLASHC_USER_PAGE + BOOT_FORCE_OFFSET1, BOOT_FORCE_VALUE1, 4, TRUE);
to set the user page for the chip. Everything works as expected if I call this function pretty much at the begining of my code from my main loop. But when I call it from another sub function much later in my code, this function freezes the micro.
I traced it further with debug statements and I see the while loop that is inside this flashc_memset32 function is the problem. my print statements up till this while loop shows up. After it doesnt.
Anyone come across this problem?