In this post http://www.chibios.com/forum/viewtopic.php?f=16&t=3875 it is said that the STM32 code for ChibiOS needs a comparator register. My question is: does it need just one and if that's the case is it possible to use TIM16,17 for the os, also how to implement TIM16/17 (i know about shared interrupts with TIM1).
Thank you.
How many CCR Units need Chibios RT on STM32 (Q: TIM16,17 related)
Moderators: RoccoMarco, barthess
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: How many CCR Units need Chibios RT on STM32 (Q: TIM16,17 related)
hi,
PWM just requires one channel, ICU two, GPT none.
The only issue are the shared IRQs.
Giovanni
PWM just requires one channel, ICU two, GPT none.
The only issue are the shared IRQs.
Giovanni
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: How many CCR Units need Chibios RT on STM32 (Q: TIM16,17 related)
Hi,
The OS timer needs one CCR.
Giovanni
The OS timer needs one CCR.
Giovanni
Re: How many CCR Units need Chibios RT on STM32 (Q: TIM16,17 related)
Thank you. Could you please explain if there is a possibility to use TIM16 or 17 for the os. Both have one ccr and are 16bit. (I am using 32F100 Chip - there are no 32bit timers), and which files need changing.
Also is there a problem with the shared interrupt?
Thank you.
Also is there a problem with the shared interrupt?
Thank you.
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: How many CCR Units need Chibios RT on STM32 (Q: TIM16,17 related)
Hi,
You need to change hal_st_lld.c and hal_st_lld.h. Shared interrupts are a problem if you try to activate the sharing timer with another driver, the ISR name would conflict and the result is a duplicated symbol during linking phase.
Giovanni
You need to change hal_st_lld.c and hal_st_lld.h. Shared interrupts are a problem if you try to activate the sharing timer with another driver, the ISR name would conflict and the result is a duplicated symbol during linking phase.
Giovanni
Who is online
Users browsing this forum: Bing [Bot] and 15 guests