Skip to main content
This topic has been closed for replies.

11 replies

S.Ma
Principal
March 25, 2019

There are some posts about generated code about HAL_Delay being different from CubeMX 5+. Similar issue here?

Bastian Toulelan
Associate II
March 25, 2019

i tested led blinking on my stm32f429 board , the LED turn on but didn't blinking but now when i tested it on my friend's board with the same code it worked !!! so i think it is caused by Hardware.

T J
Senior III
March 25, 2019
Put a break point in the systick interrupt, see if its running..
T J
Senior III
March 25, 2019

some projects you have to enable systick, is it running ?

void initSysTick() {
 int ticks = 0x6000; // 32MHz 1mS count
 SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */
 NVIC_SetPriority(SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */
 
 SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
 SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk |
 SysTick_CTRL_TICKINT_Msk |
 SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */
}

Bastian Toulelan
Associate II
March 25, 2019

i tried it now but still doesn't work

S.Ma
Principal
March 25, 2019

If you are in debug mode, open the HW peripheral window and manually look at your GPIO and try to change off/on state. Just to make sure the HW and the GPIO registers are ok.