Skip to main content
Visitor II
April 7, 2025
Solved

Nucleo-F302R8 doesn't seem to have TIM15 & TIM17

  • April 7, 2025
  • 1 reply
  • 325 views

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

 

    This topic has been closed for replies.
    Best answer by Uwe Bonnes

    Did you enable the timer clocks?

    1 reply

    Graduate II
    April 7, 2025

    Did you enable the timer clocks?