Skip to main content
EA50
Visitor II
October 19, 2021
Question

HAL_Delay in STM32H743 web server example is 3x times then its should

  • October 19, 2021
  • 1 reply
  • 1010 views

Hi

Because there is not CUBE generated working version for the STM32 H743ZI2 i am using the

Web Server Netconn example

I noticed the HAL_Delay(1000) is actually 3 seconds.

How can it be fixed?

Thanks!

This topic has been closed for replies.

1 reply

waclawek.jan
Super User
October 19, 2021

Check, if your system clock is set as you expect it to be - e.g. output it to MCO pin and observe using oscilloscope/LA.

Users often incorrectly set the primary clock source's frequency (crystal frequency), so check that too. I don't use Cube/HAL, so I don't know the name and placement of the related constant which tells Cube/HAL the HSE input frequency.

JW

@Community member​ @TDK​ #25MHz_vs_8MHz

Tesla DeLorean
Guru
October 19, 2021

The ZI2 uses an ST-LINK/V3 so extra chances of odd clock speed settings. V3 now configurable to a broader selection of unhelpful frequencies. Don't see this well documented, but offered via the update application as I recall.

HSE_VALUE is usally defined in stm32h7xx_hal_conf.h

The NUCLEO-H743 comes in two forms, ie ZI and ZI2, there is some different pins usage, so command line define needs to be set appropriately.

See USE_NUCLEO_H743ZI2

STM32Cube_FW_H7_V1.8.0\Drivers\BSP\STM32H7xx_Nucleo\stm32h7xx_nucleo.h

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
October 19, 2021

0693W00000FD3JbQAL.jpg

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..