cancel
Showing results for 
Search instead for 
Did you mean: 

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

MArvi.1
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
KnarfB
Principal III

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

hth

KnarfB

View solution in original post

3 REPLIES 3
KnarfB
Principal III

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

hth

KnarfB

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 Venmo
Up vote any posts that you find helpful, it shows what's working..

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