[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.
Post Reply
User avatar
FXCoder
Posts: 403
Joined: Sun Jun 12, 2016 4:10 am
Has thanked: 188 times
Been thanked: 134 times

Re: [DEV] STM32G4xx support

Post by FXCoder »

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: 277
Joined: Mon Sep 24, 2012 3:52 pm
Been thanked: 33 times

Re: [DEV] STM32G4xx support

Post by alexblack »

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: 277
Joined: Mon Sep 24, 2012 3:52 pm
Been thanked: 33 times

Re: [DEV] STM32G4xx support

Post by alexblack »

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: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [DEV] STM32G4xx support

Post by Giovanni »

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

Giovanni
alexblack
Posts: 277
Joined: Mon Sep 24, 2012 3:52 pm
Been thanked: 33 times

Re: [DEV] STM32G4xx support

Post by alexblack »

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: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [DEV] STM32G4xx support

Post by Giovanni »

Great job :)

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

Giovanni
alexblack
Posts: 277
Joined: Mon Sep 24, 2012 3:52 pm
Been thanked: 33 times

Re: [DEV] STM32G4xx support

Post by alexblack »

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: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [DEV] STM32G4xx support

Post by Giovanni »

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: 277
Joined: Mon Sep 24, 2012 3:52 pm
Been thanked: 33 times

Re: [DEV] STM32G4xx support

Post by alexblack »

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: 403
Joined: Sun Jun 12, 2016 4:10 am
Has thanked: 188 times
Been thanked: 134 times

Re: [DEV] STM32G4xx support

Post by FXCoder »

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