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.
Support for STM32G0B1 Topic is solved
- Giovanni
- Site Admin
- Posts: 14402
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1067 times
- Been thanked: 912 times
- Contact:
- Giovanni
- Site Admin
- Posts: 14402
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1067 times
- Been thanked: 912 times
- Contact:
Re: Support for STM32G0B1
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
Added a STM32G0B1 target to the USB-CDC demo.
Giovanni
- Giovanni
- Site Admin
- Posts: 14402
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1067 times
- Been thanked: 912 times
- Contact:
Re: Support for STM32G0B1
It appears to work now but there are parts not yet finalized (fast option, isochronous support).
Giovanni
Giovanni
-
- Posts: 38
- Joined: Sat Jan 10, 2015 10:12 pm
- Has thanked: 1 time
- Been thanked: 1 time
Re: Support for STM32G0B1
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:
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?
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
- Giovanni
- Site Admin
- Posts: 14402
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1067 times
- Been thanked: 912 times
- Contact:
Re: Support for STM32G0B1
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
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
-
- Posts: 38
- Joined: Sat Jan 10, 2015 10:12 pm
- Has thanked: 1 time
- Been thanked: 1 time
Re: Support for STM32G0B1
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:
If you patch that so that STM32_IRQ_TIM3_TIM4_PRIORITY = 1, you get the following warning:
and in my actual project where I am trying to do PWM with those timers, I get the following linker errors:
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.
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.
- Giovanni
- Site Admin
- Posts: 14402
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1067 times
- Been thanked: 912 times
- Contact:
Re: Support for STM32G0B1
Hi,
It is most likely a bug, repening this ticket, will be fixed in next release.
Giovanni
It is most likely a bug, repening this ticket, will be fixed in next release.
Giovanni
-
- Posts: 38
- Joined: Sat Jan 10, 2015 10:12 pm
- Has thanked: 1 time
- Been thanked: 1 time
Re: Support for STM32G0B1
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?)?
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?)?
Who is online
Users browsing this forum: No registered users and 2 guests