Added missing USB (and CRC) related code for STM32C0xx port

Use this forum for requesting small changes in ChibiOS. Large changes should be discussed in the development forum. This forum is NOT for support.
Engemil
Posts: 37
Joined: Thu Dec 19, 2024 12:50 am
Has thanked: 13 times
Been thanked: 10 times

Re: Added missing USB (and CRC) related code for STM32C0xx port

Post by Engemil »

Hmm, alright! I'm gonna have to get some progress working on my project. However, I will mark this as something I can investigate in September.


To be noted, I compared quickly TIM2 for the STM32C0xx and STM32G0x1 reference manuals, and saw that in os/common/ext/ST/STM32C0xx/stm32c071xx.h, these things were missing for STM32C071xx

- All of IS_TIM_OCCS_INSTANCE

Code: Select all

/****************** TIM Instances : supporting bitfield OCCS in SMCR register *******************/
#define IS_TIM_OCCS_INSTANCE(INSTANCE)                (((INSTANCE) == TIM1)  || \
                                                       ((INSTANCE) == TIM2)  || \
                                                       ((INSTANCE) == TIM3))


- TIM2 for IS_TIM_TISEL_INSTANCE

Code: Select all

/******************* TIM Instances : Timer input selection ********************/
#define IS_TIM_TISEL_INSTANCE(INSTANCE) (((INSTANCE) == TIM14)  || \
                                         ((INSTANCE) == TIM2)   || \
                                         ((INSTANCE) == TIM16)  || \
                                         ((INSTANCE) == TIM17))


not sure if these things have a big impact on system timer functionality, and might be worth noting.
geoffrey.brown
Posts: 122
Joined: Thu May 07, 2015 9:47 pm
Has thanked: 3 times
Been thanked: 18 times

Re: Added missing USB (and CRC) related code for STM32C0xx port

Post by geoffrey.brown »

Any updates on getting tim2 working?

(update -- I see a fix was announced in a different thread)
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Added missing USB (and CRC) related code for STM32C0xx port

Post by Giovanni »

Hi,

It has been added to trunk code, will be back-ported to 21.x in next release.

Giovanni
Post Reply