cancel
Showing results for 
Search instead for 
Did you mean: 

stm32h7xx_hal SysTimer failed to initialize during HAL_Init().

KGane.1
Associate III

I have STM3H753XI Eval board. I am working with example project available \en.stm32cubeh7_v1-9-0_v1.9.0\STM32Cube_FW_H7_V1.9.0\Projects\STM32H743I-EVAL\Examples\UART\UART_HyperTerminal_IT

Tool chain is IAR EWARM 8.22

Project is compiled successfully and hex file is generated. Downloaded the hex file and LED's are not turned ON.

While debugging found, that sys timer frequency configuration is wrong. the global variable "uwTickFreq" is set to 'y'(0xFF)

0693W00000HrJ2oQAF.pngDid any one observed the same behavior?

4 REPLIES 4
TDK
Guru

When you debug and step through the program, where exactly does it get stuck or encounter errors?

Are you sure the system has loaded that variable? Should be done in a startup code.

It's assigned right here:

https://github.com/STMicroelectronics/STM32CubeH7/blob/ccb11556044540590ca6e45056e6b65cdca2deb2/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c#L73

Nothing else in the project reassigns it.

https://github.com/STMicroelectronics/STM32CubeH7/search?q=uwTickFreq

If you feel a post has answered your question, please click "Accept as Solution".
KGane.1
Associate III

@TDK, I agree. The variable is initialized once and not updated anywhere else. Its really strange why it is failed. May be IAR EWARM project files was corrupted?

I have downloaded fresh copy from GitHub and everything is OK now. Should I have to use with specific version of IAR EWARM?

KGane.1
Associate III

@TDK​ The issue is data corruption during download.

HW: STM32H753XI-EVAL2

Toolchain: IAR EWARM 8.22

Debugger: IAR I-jet

Debug Log:

Mon Jan 17, 2022 11:52:28: Verification error at 0x08004E40: mem = 0xFF, file = 0x00 

Mon Jan 17, 2022 11:52:28: Download completed but verification failed.

Project.map:

 Initializer bytes const  0x08004d8c  0xc5 <for P2-1>

              - 0x08004e51 0x4bb9

clearly the variables are corrupted.

By the way, any idea why the verification is failing?

Actually the project is built for H743 EVAL board. I am using H753XI EVAL2 board. I tried setting the device as H753Xi in IAR project options. Still its failing. I don't difference in core between H743Xi and H753Xi.

KGane.1
Associate III

@TDK​ STM32CubeH7 MCU Firmware Package

Demo EWARM projects are using

  • Device Description File(STM32H7x3.ddf )
  • Flashloader(FlashSTM32H7xxx_CM7.board)

My environment is usingFlash

  • Device Description File(STM32H743XI.ddf )
  • Flashloader(STM32H753xI.board)

I don't have files used in Demo projects. My EWARM8.0 installation directory doesn't have .ddf and .board file used in Demo project. Could someone share the files?