cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H563 hard fault in low level init.

baranovus
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
baranovus
Associate III

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.

View solution in original post

1 REPLY 1
baranovus
Associate III

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.