Skip to main content
JDave.4
Associate III
June 19, 2025
Solved

STM32N6 MX_TouchGFX_PreOsInit() Fails

  • June 19, 2025
  • 3 replies
  • 453 views

Hello,

MX_TouchGFX_PreOsInit() fails at the line below and connection to the debugger is lost in my project. Please see the screen below for the issue. The .ioc file is also attached. What's wrong with it? It is a custom board and working from RAM in FSBL. Is there any example project for TouchGFX with N6?

 

JDave4_0-1750326910045.png

 

Best answer by JDave.4

Adding below line fixed the issue. 

 // Enable clock for CRC init
 __HAL_RCC_SYSCFG_CLK_ENABLE();

 

3 replies

JDave.4
JDave.4Author
Associate III
June 21, 2025

Any solution?

ST Employee
June 24, 2025

Hello @JDave.4 ,

The N6 is harder to debug than the other board in touchgfx, do you use touchgfx 4.25 and the latest board TBS (v3.0.2) ? It was updated with better debugging capabilities.

LouisB_0-1750771481965.png

Also there's a readme.md in the root of your project that might help you, for debugging.

BR,

JDave.4
JDave.4AuthorBest answer
Associate III
June 25, 2025

Adding below line fixed the issue. 

 // Enable clock for CRC init
 __HAL_RCC_SYSCFG_CLK_ENABLE();