Replies: 2 comments
-
Not sure this is the best approach to go with HAL stm32 functions, LL driver is preferable. |
Beta Was this translation helpful? Give feedback.
-
Looking at it more, I think my problem before was that the clocks to the peripheral were not turned on. On the STM32, register access to a peripheral is not available unless the clock has been turned on. Using a combination of LL methods and direct register access I was able to get my code working properly after enabling the clocks to the timer peripheral. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use the input compare of a timer with Zephyr. I have a prototype that works with with STM32CubeIDE and the standard STM32 HAL library, but I'm unable to port it to Zephyr. It seems that I do not get an interrupt from the timer when the pin value changes, although it is setup properly as far as I can tell.
Here's a simplified version of my code, which uses the HAL code to do the initialization of the timer and tries to set it running:
I've been assuming that I need to do the
IRQ_CONNECT
in order to properly install my IRQ handler, but it's not working at all(the interrupt is never called). Is there something else that I need to do in order to make sure that the HAL code is playing nicely with Zephyr?Beta Was this translation helpful? Give feedback.
All reactions