cancel
Showing results for 
Search instead for 
Did you mean: 

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

EA50
Associate

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!

3 REPLIES 3

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

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 Venmo
Up vote any posts that you find helpful, it shows what's working..

0693W00000FD3JbQAL.jpg

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