cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32l0 USB connection error CubeMX

andreas239955_stm1_st
Associate II

Hello,

I try to get the usb vcp running on the nucleo-l053r8 board. I will keep it simple and to it with your software CubeMX in the first step.

I created a project with the help of CubeMX.

I activated the usb pins, selected usb CDC. Activated rc48 for usb clock and Hsi RC 16 with pll and the settings *3 /2 to drive the rest with 24MHz.

After​ this, I changed the heap size to 1000 and stack size to 400 as described in some article on your homepage.

Now I created a project for Iar. This is running and I get some information about a connection trial. The usb analyzer says:

PnP: device connected

PnP: device surprise removal

PnP: device disconnected

If I try​ to debug the software, an interrupt is asserted. Reset was send and in this interrupt call also a suspend flag and an esof flag is evaluated.

In my point of view, this fits perfect to the result of the analyser.​

Can​ you help me with this issue please.

I have tried also some other examples but I had always the same issue.​

Best regards Andreas M.

0 REPLIES 0