Page 5 of 11
Re: [DEV] STM32G4xx support
Posted: Sun Feb 16, 2020 11:06 am
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
Re: [DEV] STM32G4xx support
Posted: Mon Feb 17, 2020 10:52 am
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.
Re: [DEV] STM32G4xx support
Posted: Mon Feb 17, 2020 3:45 pm
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.
Re: [DEV] STM32G4xx support
Posted: Mon Feb 17, 2020 9:07 pm
by Giovanni
I have the same board... I am waiting for a connector breakout board.
Giovanni
Re: [DEV] STM32G4xx support
Posted: Tue Feb 18, 2020 7:24 am
by alexblack
Hi.
What are You waiting for - "USB MADE SIMPLE" from simple USB A cable

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.
Re: [DEV] STM32G4xx support
Posted: Tue Feb 18, 2020 7:29 am
by Giovanni
Great job

Thanks, just FDCAN is missing and G4 support will be complete.
Giovanni
Re: [DEV] STM32G4xx support
Posted: Tue Feb 18, 2020 7:36 am
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
Re: [DEV] STM32G4xx support
Posted: Tue Feb 18, 2020 7:48 am
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
Re: [DEV] STM32G4xx support
Posted: Tue Feb 18, 2020 12:34 pm
by alexblack
Also USART not fully supported in case for PRESC registers settings.
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");
Re: [DEV] STM32G4xx support
Posted: Tue Feb 18, 2020 12:56 pm
by FXCoder
Alex,
The BRR assert is a minor pending fix to be applied.
viewtopic.php?f=35&t=5378--
Bob