Skip to main content
MArvi.1
Associate II
July 6, 2022
Solved

How do you see which pins are configured as a timer channel output without using STM32CubeMX?

  • July 6, 2022
  • 2 replies
  • 1270 views

Hi all,

I am interested on how to see which pins are configured as a timer channel output without using STM32CubeMX? I am using a STM32L476RG board. Is it possible to see from the .c/.h files? If yes, how?

Thanks.

This topic has been closed for replies.
Best answer by KnarfB

If the code was generated by STM32CubeIDE: yes. The pins are setup in stm32l4xx_hal_msp.c, HAL_TIM_MspPostInit.

hth

KnarfB

2 replies

KnarfB
KnarfBBest answer
Super User
July 6, 2022

If the code was generated by STM32CubeIDE: yes. The pins are setup in stm32l4xx_hal_msp.c, HAL_TIM_MspPostInit.

hth

KnarfB

MArvi.1
MArvi.1Author
Associate II
July 7, 2022

Thanks for the answer. Another question if I may, what about the frequency of the clock?

Tesla DeLorean
Guru
July 6, 2022

Well they're enumerated in the Data Sheet

You could grep or find-in-file "GPIO_AF", some STM32 parts are more consistent than others, some look like they were assigned by a seal throwing darts..

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