2023-07-02 07:29 PM
Hello All.
I wrote a simple code, which is supposed to start on reset address, check the availability of an application on the higher application address and jump to it. I am using IAR9.32. The code works if loaded using STLINK but gets into hard fault if reset using watchdog timer initiated in the main application (for example from console command "reboot").
1. Did somebody encounter this?
2. Is the source code of the "iar_low_level_init" available? I could not find it in the IAR folder.
I apologize for a kind of an off-topic because it might be about IAR rather than STM32.
Aleks.
Solved! Go to Solution.
2023-07-11 11:35 AM
The hard fault occurred in lz77 initialization code within IAR library after an attempt to access invalid RAM location. The issue disappeared after we changed the optimization level. It is definitely the IAR problem.
2023-07-11 11:35 AM
The hard fault occurred in lz77 initialization code within IAR library after an attempt to access invalid RAM location. The issue disappeared after we changed the optimization level. It is definitely the IAR problem.