Skip to main content
Caan
Associate III
Mar 7, 2026 11:51 AM UTC
Question

Program stuck at memory STM32H750XB based board

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?

9 replies

Associate
Mar 7, 2026 12:08 PM UTC

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
Mar 7, 2026 3:09 PM UTC

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
Mar 7, 2026 5:28 PM UTC

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
Mar 7, 2026 2:29 PM UTC

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
Mar 7, 2026 3:05 PM UTC

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
Mar 8, 2026 2:10 PM UTC

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""."