Support for STM32G0B1 Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
fractal
Posts: 16
Joined: Mon Oct 28, 2013 12:13 pm
Has thanked: 2 times
Been thanked: 5 times

Re: Support for STM32G0B1

Postby fractal » Sat Nov 13, 2021 1:01 am

Hi Giovanni,

I had a look at the register differences between G0 and old usb (e.g. F3), and while I don't really understand all the code, I tried making the obvious name changes that were partially already done in the new USBv2 files. I didnt understand the changes to the buffer, so I left that alone. Maybe it helps, I have attached my hal_usb_lld.c to this post.
Attachments
hal_usb_lld.zip
(6.04 KiB) Downloaded 107 times

User avatar
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: Support for STM32G0B1

Postby Giovanni » Sat Nov 13, 2021 7:11 am

Hi,

Thanks, will review and merge it.

Giovanni

User avatar
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: Support for STM32G0B1

Postby Giovanni » Sun Nov 14, 2021 3:06 pm

Small update, the driver now compiles but it does not work yet, it gets interrupts so it is "active".

Added a STM32G0B1 target to the USB-CDC demo.

Giovanni

User avatar
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: Support for STM32G0B1

Postby Giovanni » Sun Nov 14, 2021 3:45 pm

It appears to work now but there are parts not yet finalized (fast option, isochronous support).

Giovanni

fractal
Posts: 16
Joined: Mon Oct 28, 2013 12:13 pm
Has thanked: 2 times
Been thanked: 5 times

Re: Support for STM32G0B1

Postby fractal » Mon Nov 15, 2021 10:09 am

Confirmed working (with my hardware and windows). Thank you!

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 » Fri Sep 01, 2023 2:56 am

I'm trying to get up and running with Chibios on a STM32G0B1VET6. Currently I'm trying to port the RT-STM32G0B1RE-NUCLEO64 demo so that it can run on the STM32G0B1VET6/my board. I'm using a 8 MHz osc (just like the dev board), so no issues there.

I ask ChatGPT what I need to do and it gave the following:
► Show Spoiler


If I may ask, does the suggestions seem accurate? If not, what's off? Also, is there a easier way to get it up and running? Thanks!

Edit:
Upon searching through the code, everything seems fairly generic with regards to the package variant/pin count. Is there actually anything I need to change besides the follow board specific pin assignments to get the demo running?

► Show Spoiler

User avatar
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: Support for STM32G0B1

Postby Giovanni » Fri Sep 01, 2023 1:05 pm

Hi,

It is only partly correct, there are some errors.

Please visit http://www.playembedded.org guides there should cover most of those points.

Note that board files are not meant to be edited manually, there is a code generator in ChibiStudio, edit the XML file instead (board.chcfg).

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 » Sun Sep 03, 2023 3:19 am

I'm running into some errors that seem like they might be bugs.

If you take the RT-STM32G0B1RE-NUCLEO64 demo and enable PWM (HAL_USE_PWM -> TRUE, STM32_PWM_USE_TIM1 -> TRUE, STM32_PWM_USE_TIM3 -> TRUE, STM32_PWM_USE_TIM4 -> TRUE), then you get the following error:

► Show Spoiler


If you patch that so that STM32_IRQ_TIM3_TIM4_PRIORITY = 1, you get the following warning:
► Show Spoiler


and in my actual project where I am trying to do PWM with those timers, I get the following linker errors:
► Show Spoiler


If I may ask, is this simply bad configuration on my end or is there a bug here? I built both without the IDE, but I can go back and reinstall the linux IDE so I can try it there if need be. Thanks.

User avatar
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: Support for STM32G0B1

Postby Giovanni » Sun Sep 03, 2023 6:02 am

Hi,

It is most likely a bug, repening this ticket, will be fixed in next release.

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 » Sun Oct 01, 2023 8:37 pm

If I may ask, is the RT-STM32G0B1RE-NUCLEO64 demo expected to work? I just tried it with the NUCLEO-G0B1RE and the light stopped flashing once the install occurred.

ChibiOS:
ChibiOS_21.11.3

Project:
RT-STM32G0B1RE-NUCLEO64

GCC:
gcc-arm-none-eabi-bin (Arch package)

Flash command:
st-flash --reset erase
st-flash --reset write ./build/ch.bin 0x08000000

Any help would be appreciated. Also, would it be possible to put a bounty on bug fixes for this chipset prior to the next release ($500?)?


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 19 guests