2025-04-07 12:29 PM
I can't get TIM15 or TIM17 to work on a Nucleo-F302R8 board. If I examine the peripheral memory where TIM15 (0x40014000) and TIM17 (0x40014800) should be, I always read back all zeros.
For example, using gdb I write to the timer's ARR register and then read back:
For TIM15:
set *0x4001402c =0x5a5a
x/20xw 0x40014000 returns all zeros.
For TIM16:
set *0x4001442c =0x5a5a
x/20xw 0x40014400 returns the expected value at 0x4001442c.
For TIM17:
set *0x4001482c =0x5a5a
x/20xw 0x40014800 returns all zeros.
According to the stm32f302r6-8.pdf data sheet, the STM32F302R8 has both TIM15 and TIM17 timers. I tested this on a brand new, unused Nucleo-F302R8 board and a used one.
What am I missing?
Thanks,
Tom
Solved! Go to Solution.
2025-04-07 12:45 PM
Did you enable the timer clocks?
2025-04-07 12:45 PM
Did you enable the timer clocks?