STM32G474 shell over USB demo

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
Post Reply
User avatar
Roberto Geografo
Posts: 7
Joined: Mon Aug 09, 2021 2:09 pm
Has thanked: 1 time

STM32G474 shell over USB demo

Post by Roberto Geografo »

Hi,

I am trying the USB_CDC demo code from ChibiOS v21.11.1 (and also on v21.6.0) on an STM32G474RE Nucleo board.

However, the USB appears as devttyACM0 but it's "not active", I can see that from the blinker thread on line 100.

Is there anything that I should be doing from the receiver PC that I am currently missing?

Best,

Rob
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32G474 shell over USB demo

Post by Giovanni »

Hi,

If it is a Linux PC nothing is required, it should just work. Is the USB connector attached correctly to the board? It is also possible that your terminal emulation program is sending some unsupported Ep0 command causing the driver to stall.

If it is an USB3 try an USB2 port, just in case.

Giovanni
User avatar
Roberto Geografo
Posts: 7
Joined: Mon Aug 09, 2021 2:09 pm
Has thanked: 1 time

Re: STM32G474 shell over USB demo

Post by Roberto Geografo »

Hi Giovanni,

I am using a Linux PC and GTKTerm. Also, I am connecting the Nucleo board to a USB2 port. Unfortunately, I don't see the shell initialisation statement appearing in the terminal, nor I am able to write anything to it.

I may be able to try with an STM32F303RE Nucleo board tomorrow and see if I get anything different.

Best,

Rob
User avatar
Roberto Geografo
Posts: 7
Joined: Mon Aug 09, 2021 2:09 pm
Has thanked: 1 time

Re: STM32G474 shell over USB demo

Post by Roberto Geografo »

Hi,

It's not working on the STM32F303 either. Should the device be recognized as devttyACM0?
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32G474 shell over USB demo

Post by Giovanni »

It is working here, probably ACM0 is the ST-Link in your case, try ACM1.

Giovanni
Post Reply