2026-03-07 3:51 AM - last edited on 2026-03-07 7:13 AM by TDK
I have successfully tested the board that is based on STM32H750B-DK Architecture using Touchgfx based code demo for STM32H750B-DK but now I have created a fresh stm32cubemx project with same files and settings and same ld as of the demo board but the Code is getting stucked at the
static int32_t MT48LC4M32B2_Delay(uint32_t Delay)
{
uint32_t tickstart;
tickstart = HAL_GetTick();
while((HAL_GetTick() - tickstart) < Delay)
{
}
return MT48LC4M32B2_OK;
}
What could be the problem?
2026-03-07 4:08 AM - edited 2026-03-07 4:09 AM
first of all describe weather you are using demo board or different board
if you are using custom made board then most probably your cube mx clock config is not matching the hardware clock.
use below code block to check weather dbgTick is incrementing or not or how slow its incrementing
static int32_t MT48LC4M32B2_Delay(uint32_t Delay)
{
uint32_t tickstart;
uint32_t dbgTick;
tickstart = HAL_GetTick();
while((HAL_GetTick() - tickstart) < Delay)
{
dbgTick = HAL_GetTick();
}
return MT48LC4M32B2_OK;
}
2026-03-07 6:29 AM
There's nothing wrong in the code you posted.
If the two projects were the same, they would behave the same. I suggest doing a diff of both projects to find the differences.
2026-03-07 7:05 AM - edited 2026-03-07 9:00 AM
2026-03-07 7:09 AM - edited 2026-03-07 8:22 AM
2026-03-07 9:28 AM
If clock config is correct then your code is getting stuck somewhere else.
Best way is to add breakpoints and check at which function block your code is getting stuck.
2026-03-07 9:40 AM - edited 2026-03-07 9:40 AM
2026-03-07 8:38 PM
Your code is getting stuck in init process only
Add debugging info near the breakpoints to understand whats happening exactly
From your previous reply halgettick was not incremting points towards clock config issue
Go through congratulation thoroughly and it will solve the issue.
I cant help with the little information you have provided.
2026-03-08 7:10 AM
It's in an interrupt. Look at VECTACTIVE in SCB to see which one it's in. Probably something is not implemented.
2026-03-08 8:02 AM
My crystal ball tip: you call in main sooner MX_FMC_Init as timer init for hal gettick = tick is stopped.