STM32G474 shell over USB demo

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

STM32G474 shell over USB demo

Postby Roberto Geografo » Fri May 13, 2022 5:50 pm

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
Best,

Rob

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

Re: STM32G474 shell over USB demo

Postby Giovanni » Fri May 13, 2022 7:05 pm

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
Location: Bristol
Has thanked: 1 time

Re: STM32G474 shell over USB demo

Postby Roberto Geografo » Sun May 15, 2022 10:17 pm

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
Best,

Rob

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

Re: STM32G474 shell over USB demo

Postby Roberto Geografo » Mon May 16, 2022 1:45 pm

Hi,

It's not working on the STM32F303 either. Should the device be recognized as devttyACM0?
Best,

Rob

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

Re: STM32G474 shell over USB demo

Postby Giovanni » Mon May 16, 2022 2:02 pm

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

Giovanni


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 2 guests