[DEV] STM32G4xx support

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
User avatar
FXCoder
Posts: 241
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 91 times
Been thanked: 74 times

Re: [DEV] STM32G4xx support

Postby FXCoder » Sun Feb 16, 2020 11:06 am

Hi,
Still waiting for NUCLEO-G4xx stock to arrive in AU.
Current ETA April 6 so no go on USB test by me ATM.
--
Bob

alexblack
Posts: 239
Joined: Mon Sep 24, 2012 3:52 pm
Location: Donetsk
Been thanked: 27 times
Contact:

Re: [DEV] STM32G4xx support

Postby alexblack » Mon Feb 17, 2020 10:52 am

Hi.

Giovanni wrote:ADCv3 is now functional and there is a demo. FDCAN should be next.

Is anybody able to test the USB driver on G4?

Giovanni


I have STM32G474E NUCLEO board. I can test if it is about work or not work.

alexblack
Posts: 239
Joined: Mon Sep 24, 2012 3:52 pm
Location: Donetsk
Been thanked: 27 times
Contact:

Re: [DEV] STM32G4xx support

Postby alexblack » Mon Feb 17, 2020 3:45 pm

Sorry, but I look at the NUCLEO board and there is no USB jack on it. :(
So I can't simple to try the driver.
Usually it is always there, I did not expect this.

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

Re: [DEV] STM32G4xx support

Postby Giovanni » Mon Feb 17, 2020 9:07 pm

I have the same board... I am waiting for a connector breakout board.

Giovanni

alexblack
Posts: 239
Joined: Mon Sep 24, 2012 3:52 pm
Location: Donetsk
Been thanked: 27 times
Contact:

Re: [DEV] STM32G4xx support

Postby alexblack » Tue Feb 18, 2020 7:24 am

Hi.
What are You waiting for - "USB MADE SIMPLE" from simple USB A cable :)
1582006727693.JPEG

I checked the driver - it is working from current TRUNK:
Windows detected the Virtual COM Port, Terminal receive the test suite results.
I used my demo KEIL project.

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

Re: [DEV] STM32G4xx support

Postby Giovanni » Tue Feb 18, 2020 7:29 am

Great job :)

Thanks, just FDCAN is missing and G4 support will be complete.

Giovanni

alexblack
Posts: 239
Joined: Mon Sep 24, 2012 3:52 pm
Location: Donetsk
Been thanked: 27 times
Contact:

Re: [DEV] STM32G4xx support

Postby alexblack » Tue Feb 18, 2020 7:36 am

I made my custom board on STM32G473VET and the project is not compille now:

Code: Select all

Build target 'debug'
assembling vectors.s...
assembling cstartup.s...
compiling main.cpp...
..\lib\ChibiOS\os\hal\ports\STM32\LLD\DMAv1\stm32_dma.h(276): error:  #35: #error directive: "STM32_DMA_SUPPORTS_DMAMUX not defined in registry"
  #error "STM32_DMA_SUPPORTS_DMAMUX not defined in registry"
..\src\main\main.cpp: 0 warnings, 1 error
compiling board.c...
..\lib\ChibiOS\os\hal\ports\STM32\LLD\DMAv1\stm32_dma.h(276): error:  #35: #error directive: "STM32_DMA_SUPPORTS_DMAMUX not defined in registry"
  #error "STM32_DMA_SUPPORTS_DMAMUX not defined in registry"
..\src\board\board.c: 0 warnings, 1 error

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

Re: [DEV] STM32G4xx support

Postby Giovanni » Tue Feb 18, 2020 7:48 am

STM32G473 is not defined in registry, I don't have one to test. You could add it and give feedback about it.

Giovanni

alexblack
Posts: 239
Joined: Mon Sep 24, 2012 3:52 pm
Location: Donetsk
Been thanked: 27 times
Contact:

Re: [DEV] STM32G4xx support

Postby alexblack » Tue Feb 18, 2020 12:34 pm

Also USART not fully supported in case for PRESC registers settings.
Clip2net_200218143126.png

Thus on 170Mhz an assertion is triggered for BAUD RATE = 9600:

Code: Select all

<\os\hal\ports\STM32\LLD\USARTv2\hal_serial_lld.c>
258  osalDbgAssert(brr < 0x1000, "invalid BRR value");

User avatar
FXCoder
Posts: 241
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 91 times
Been thanked: 74 times

Re: [DEV] STM32G4xx support

Postby FXCoder » Tue Feb 18, 2020 12:56 pm

Alex,
The BRR assert is a minor pending fix to be applied.
viewtopic.php?f=35&t=5378
--
Bob


Return to “Development and Feedback”

Who is online

Users browsing this forum: No registered users and 1 guest