Support for STM32G0B1 Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
User avatar
Giovanni
Site Admin
Posts: 14458
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Support for STM32G0B1

Postby Giovanni » Tue Nov 07, 2023 9:50 am

Hi,

Could you post your halconf.h, mcuconf.h files causing compilation errors?

Giovanni

charlesrwest
Posts: 38
Joined: Sat Jan 10, 2015 10:12 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Support for STM32G0B1

Postby charlesrwest » Tue Nov 07, 2023 3:28 pm

Certainly.

For reference, the RT-STM32G0B1RE-NUCLEO64 demo exhibits this behavior.

With a fresh copy and the only change being the ChibiOS directory path it compiles fine.

► Show Spoiler


If you make the further changes:
#define HAL_USE_PWM TRUE
and
#define STM32_GPT_USE_TIM3 TRUE
#define STM32_GPT_USE_TIM4 TRUE
then it fails with
► Show Spoiler


Those being the only differences confirmed by recursive diff:
► Show Spoiler


I have also attached the project. Thanks.
Attachments
RT-STM32G0B1RE-NUCLEO64_tim3_tim4.zip
(14.9 KiB) Downloaded 72 times

User avatar
Giovanni
Site Admin
Posts: 14458
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Support for STM32G0B1

Postby Giovanni » Wed Nov 08, 2023 9:36 am

Hi,

Fixed in repository trunk.

Giovanni

charlesrwest
Posts: 38
Joined: Sat Jan 10, 2015 10:12 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Support for STM32G0B1

Postby charlesrwest » Thu Nov 09, 2023 3:48 pm

Thank you. I have verified that the TIM3, TIM4 PWM channels are working as expected on my board.

I cannot reproduce the PF3-4 PAL_MODE_INPUT_PULLUP causing crash bug in an isolated example based on the example in the trunk, so it was probably a mess up on my side (apologies). I will keep digging.

Thanks again. This really helps.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 10 guests