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  Topic is solved

Postby lilvinz » Thu Oct 18, 2018 7:06 pm

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: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32L496 USB error

Postby Giovanni » Thu Oct 18, 2018 7:26 pm

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

Postby lilvinz » Thu Oct 18, 2018 8:39 pm

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: 825
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

Re: STM32L496 USB error

Postby steved » Thu Oct 18, 2018 10:02 pm

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

Postby lilvinz » Sun Oct 28, 2018 1:08 pm

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

Postby lilvinz » Fri Nov 09, 2018 10:04 pm

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: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32L496 USB error

Postby Giovanni » Fri Nov 09, 2018 10:33 pm

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

Giovanni

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

Re: STM32L496 USB error

Postby Giovanni » Thu Nov 15, 2018 10:38 am

Closing then.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 62 guests