cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure CubeMX to count external events in Linux

ALeba.1
Associate

I'm trying to use the TIM internal peripheral as an events counter on an STM32MP15. I have the ETR pin connected to a line generating pulses. When I tried to configure the trigger in STM32CubeMX,I was unable to select the ETR trigger when TIM1 was connected to Linux, only when connected to the M4 core.

ALeba1_1-1694208762918.png

ALeba1_2-1694208836098.png

Is there no linux driver capable of running the TIM internal peripheral in this mode?

https://wiki.st.com/stm32mpu/wiki/TIM_device_tree_configuration seems to indicate that `st,stm32-timer-counter` can be used as an external events counter. Do I simply need to manually create the device tree setup? If so, what do I need to do to set it up?

 

0 REPLIES 0