This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

1ms Delay

Working with the STM32L052C8 using the HAL commands.
I'm using the 'HAL_Delay()' command while developing, which is meant to be a delay in ms.
I'm measuring HAL_Delay(1); to be 15ms.
Checked with the data sheet and it says to have the Cortex System Timer at 4MHz which I have got by using Cubemx.
Any ideas would be greatly appreciated, Thanks.

Parents
  • Presumably, when you say "the (sic) HAL" - you mean ST's HAL ?

    If so, you should be going to ST for support with their code ...

    They do supply the source - have you examined what it's doing ... ?

Reply
  • Presumably, when you say "the (sic) HAL" - you mean ST's HAL ?

    If so, you should be going to ST for support with their code ...

    They do supply the source - have you examined what it's doing ... ?

Children
No data