2023-04-16 03:53 AM - edited 2023-11-20 08:04 AM
So I've created a project and am trying to use the HAL_delay(10); but it gets stuck at this function when im trying to debug.
I have been changing the clock and enabling the TIM2 so I don't know if i've messed something up. Here are the settings that I have:
And that is about it
2023-04-17 01:11 AM
and you have any other stm32 to test, nucleo or other board?
or is this your first stm32 ever ?
2023-04-17 01:12 AM
At the moment this is all I got, it's my first stm, yes
2023-04-17 01:40 AM - edited 2023-11-20 08:06 AM
and debug/connect with ..stlinkV2 or ?
2023-04-17 01:52 AM
stlink-v3 I would like to try if the chips clock is working, any idea how ?
2023-04-17 01:58 AM - edited 2023-11-20 08:06 AM
stlink-v3 - ok.
have a scope ?
then in Cube set MCO (master clk out) active, and look with DSO on pin..xx .
2023-04-17 02:11 AM - edited 2023-11-20 08:06 AM
So with this settings i should expect 10Mhz at PA8?
2023-04-17 02:18 AM
if sysclk 80M ...right.
2023-04-17 02:23 AM
sysclk is 80Mhz yes, but Im not sure how much can gpio handle so I just set it to 10Mhz to be sure it works
2023-04-17 02:49 AM
@AScha.3 It seems to be working fine, so I have no idea what could be the issue
2023-04-17 04:07 AM - edited 2023-11-20 08:06 AM
>but Im not sure how much can gpio handle
read in DS , p. 135 . depends on core voltage/speed setting , for high 11 ->
>I have no idea what could be the issue
me too.
try new project ? and leave everything, as it is, no modified settings.