STM32L496 USB error Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
User avatar
lilvinz
Posts: 130
Joined: Sat Dec 21, 2013 2:56 pm
Has thanked: 1 time
Been thanked: 6 times

Re: STM32L496 USB error

Post by lilvinz »

Could this also be caused by faulty hardware e.g. bad usb signalling? Does it make sense to investigate in that direction e.g. check the signals and make a trace using a usb protocol analyzer?
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32L496 USB error

Post by Giovanni »

I don't know, I need to try first.

My idea is that the OTG on L4 is misbehaving for some reason, interrupts are out of logic order, maybe this is another instance of the problem fixed earlier.

Giovanni
User avatar
lilvinz
Posts: 130
Joined: Sat Dec 21, 2013 2:56 pm
Has thanked: 1 time
Been thanked: 6 times

Re: STM32L496 USB error

Post by lilvinz »

Attached you will find a screenshot from sigroc logic analyzer as well as from my scope.
It looks like after the data0 of the setup there is garbage on the line.
I can't tell if this is caused by the peripheral not doing the right thing or a hardware problem.

Here its "SYNC ERR" to the right:
Screenshot at 2018-10-18 21-33-13.png


Here its in the middle of the screenshot:
IMG_20181018_213409.jpg


Other than that garbage, the signals looks good to me.

Cheers

Vinz
steved
Posts: 834
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 138 times

Re: STM32L496 USB error

Post by steved »

Can I suggest you set up the scope to look at those signals in differential mode? That way you'll have a better idea of the actual logic levels seen by the CPU. It may be that the data is always one or zero; or maybe there are edges which cause the data to be misinterpreted.
User avatar
lilvinz
Posts: 130
Joined: Sat Dec 21, 2013 2:56 pm
Has thanked: 1 time
Been thanked: 6 times

Re: STM32L496 USB error

Post by lilvinz »

steved wrote:Can I suggest you set up the scope to look at those signals in differential mode? That way you'll have a better idea of the actual logic levels seen by the CPU. It may be that the data is always one or zero; or maybe there are edges which cause the data to be misinterpreted.


Hi Steved,

thanks for the hint. At this point i don't think it is worth the effort though.
I tend to agree with Giovanni that this is probably another issue between the driver and the usb peripheral.
Once this has been verified / disproved i will do more measurements.

Cheers

Vinz
User avatar
lilvinz
Posts: 130
Joined: Sat Dec 21, 2013 2:56 pm
Has thanked: 1 time
Been thanked: 6 times

Re: STM32L496 USB error

Post by lilvinz »

Hi Giovanni,

I have bought a nucleo board and tried to reproduce the problem there without result.
In the end it was an issue with my hardware.

Thanks for your time!

Vinz
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32L496 USB error

Post by Giovanni »

Same other conditions? (FW, host, cables, lunar phase?)

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32L496 USB error

Post by Giovanni »

Closing then.

Giovanni
Post Reply