NUCLEO-L4R5ZI OTG Support

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

Moderator: RoccoMarco

Post Reply
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

NUCLEO-L4R5ZI OTG Support

Post 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 ?
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: NUCLEO-L4R5ZI OTG Support

Post by Giovanni »

Hi,

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

Giovanni
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Re: NUCLEO-L4R5ZI OTG Support

Post 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() ??
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Re: NUCLEO-L4R5ZI OTG Support

Post by Tabulous »

I've fixed it, need to set optimization to -O0
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: NUCLEO-L4R5ZI OTG Support

Post by Giovanni »

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

Giovanni
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Re: NUCLEO-L4R5ZI OTG Support

Post 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);
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: NUCLEO-L4R5ZI OTG Support

Post 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
Post Reply