Page 1 of 1

NUCLEO-L4R5ZI OTG Support

Posted: Fri Nov 08, 2024 12:15 pm
by Tabulous
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 ?

Re: NUCLEO-L4R5ZI OTG Support

Posted: Fri Nov 08, 2024 1:06 pm
by Giovanni
Hi,

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

Giovanni

Re: NUCLEO-L4R5ZI OTG Support

Posted: Fri Nov 15, 2024 5:11 pm
by Tabulous
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() ??

Re: NUCLEO-L4R5ZI OTG Support

Posted: Fri Nov 15, 2024 5:16 pm
by Tabulous
I've fixed it, need to set optimization to -O0

Re: NUCLEO-L4R5ZI OTG Support

Posted: Fri Nov 15, 2024 7:04 pm
by Giovanni
This is quite common, you may also try -Og which is specific for debug.

Giovanni

Re: NUCLEO-L4R5ZI OTG Support

Posted: Tue Nov 19, 2024 12:08 pm
by Tabulous
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);

Re: NUCLEO-L4R5ZI OTG Support

Posted: Tue Nov 19, 2024 6:54 pm
by Giovanni
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