Skip to main content
Caan
Associate III
March 7, 2026
Question

Program stuck at memory STM32H750XB based board

  • March 7, 2026
  • 3 replies
  • 399 views

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?

3 replies

Associate
March 7, 2026

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;

}

 

Caan
CaanAuthor
Associate III
March 7, 2026

dbgTick=0 no changes there during debugging.
Now I have changed the priority of tim6 to 0 as per the demo code and now the following is shown

Associate
March 7, 2026

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.

 

TDK
Super User
March 7, 2026

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.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Caan
CaanAuthor
Associate III
March 7, 2026

I have checked several times but couldn't find anything that might be wrong.
PS I am using 1024x600 TFT instead of 480x272 Default TFT.
LD is  same as of the demoboard



TDK
Super User
March 8, 2026

It's in an interrupt. Look at VECTACTIVE in SCB to see which one it's in. Probably something is not implemented.

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