Skip to main content
baranovus
Associate III
July 3, 2023
Solved

STM32H563 hard fault in low level init.

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.

This topic has been closed for replies.
baranovus
baranovusBest answer
Associate III
July 11, 2023

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.

1 reply

baranovus
baranovusAuthorBest answer
Associate III
July 11, 2023

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.