Being stucked at 0xf7fe
Hi all,
We have developed an application with STM32F072RBT6 MCU. The sections in flash shown below,
Bootloader 0x08000000 - 0x080047FF
EEPROM Emu 0x08004800 - 0x08004FFF
Main App 0x08005000 - 0x0800FD02
Enabled Interrupts: SMBUS, RTC-Wakeup, ExtInt, Can, ADC, DMA
Main app is usually busy with talking via CANBUS, reading/writing data via I2C-SPI-SMBUS, and does some periodic jobs triggered by RTC wake up. Whole system works well for a while(sometimes 1 hour, sometimes 4-5 hours), than suddenly communication with CANBUS is breaked down. When I pause debugging I see that PC is at 0x80025c6: 0xe7fe B.N in dissassembly section. As I research 0xe7fe stands for infinite loop, and it seems to be in Bootloader section.
When I debug with Bootloader code and same error happened, I see PC is at RTC_IRQ_Handler which is at 0x80025c6. Despite RTC is not enabled at Bootloader, Main App is jumped to bootloader's interrupt location(or it can be complately different issue)
Jump process from Bootloader to Main app is same as ST example code, and Vector table relocation from flash to SRAM is also done in Main app(Since complate system works for long time without any problem I dont think having any problem while jumping process)
Do you have any idea about what can cause the problem, or how can I go further to see what is causing this issue?
Thanks in advance
