NUCLEO-L4R5ZI OTG Support

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: barthess, RoccoMarco

Tabulous
Posts: 513
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 17 times

NUCLEO-L4R5ZI OTG Support

Postby Tabulous » Fri Nov 08, 2024 12:15 pm

Hi
having looked at the demo, wondering why the NUCLEO-L4R5ZI demo did not implement OTG test app like alot of the demos do ?

Is OTG supported on STM32L4R5ZI ?

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

Re: NUCLEO-L4R5ZI OTG Support

Postby Giovanni » Fri Nov 08, 2024 1:06 pm

Hi,

It is supported by the demo under /testhal/STM32/multi/USB_CDC

Giovanni

Tabulous
Posts: 513
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 17 times

Re: NUCLEO-L4R5ZI OTG Support

Postby Tabulous » Fri Nov 15, 2024 5:11 pm

So i'm running up the

RT-STM32L4R5ZI-NUCLEO144 example

using target\stm32l4x.cfg for the ST-LINK

It runs but the debugging seems flakey, does not run and stop at main as it is setup to, it stops nvicInit() ??

Tabulous
Posts: 513
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 17 times

Re: NUCLEO-L4R5ZI OTG Support

Postby Tabulous » Fri Nov 15, 2024 5:16 pm

I've fixed it, need to set optimization to -O0

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

Re: NUCLEO-L4R5ZI OTG Support

Postby Giovanni » Fri Nov 15, 2024 7:04 pm

This is quite common, you may also try -Og which is specific for debug.

Giovanni

Tabulous
Posts: 513
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 17 times

Re: NUCLEO-L4R5ZI OTG Support

Postby Tabulous » Tue Nov 19, 2024 12:08 pm

Using /testhal/STM32/multi/USB_CDC

it seems to be working, but for some reason when the shell first start and you press CR for promt you never see the shell start info

i.e. chprintf(chp, "ChibiOS/RT Shell" SHELL_NEWLINE_STR);

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

Re: NUCLEO-L4R5ZI OTG Support

Postby Giovanni » Tue Nov 19, 2024 6:54 pm

Hi,

It also happens withe USB driver, I think it is the host discarding incoming data if the virtual com port is not yet opened by any process. You may try putting a delay before spawning the shell and opening a terminal before the shell spawns.

Giovanni


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 15 guests