[Corrected - STM32G747VE] Non-Maskable Interrupt while reading flash memory
Hi,
I suddenly get this kind of interrupt in a code that was previously working perfectly. The instruction that makes this interrupt arise is *dst=*ptr. You can check below the function:
void readHistoryFile(unsigned short * dst){
unsigned short * ptr = HF_P_ADDR; //Pointer to Flash position (starts at 0x0807F800)
for(int i=0; i<N_HF_EL;i++){
*dst = *ptr;
ptr++; //Increment Flash pointer by 2 bytes
dst++; //Increment destination pointer
}
}The initial dst address is 0x2001ff30.
I can copy some Bytes but, whenever I try to write into the address 0x2001ff50, I get the said interrupt. Also, have in mind that this problem showed up suddenly, without any change to the firmware.
Is there any good way to debug this mysterious behavior?
Thanks in advance
