STM32L476 USB HAL errors 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: STM32L476 USB HAL errors

Postby lilvinz » Sat Jan 21, 2017 1:08 pm

Bumping this thread as it has been marked as resolved.

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

Re: STM32L476 USB HAL errors

Postby Giovanni » Sat Jan 21, 2017 2:32 pm

Hi,

Removed the mark. Isn't that option available to you too?

Giovanni

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

Re: STM32L476 USB HAL errors

Postby lilvinz » Sat Jan 21, 2017 3:08 pm

I don't see, how. Maybe the thread-starter can do it though.

Cheers

Vinz

rawsock
Posts: 5
Joined: Fri Feb 17, 2017 11:26 am
Been thanked: 1 time

Re: STM32L476 USB HAL errors

Postby rawsock » Fri Feb 17, 2017 11:29 am

I got exactly the same results, i.e. USB_EP0_SENDING_STS upon USB/CDC enumeration on custom STM32L476 board. Disabling assertions 'fixes' the problem.

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

Re: STM32L476 USB HAL errors

Postby Giovanni » Tue Feb 28, 2017 10:30 am

Hi,

It is odd, on my home desktop running Linux Mint I get the problem, on a Win7 laptop it works... I need to swap boards and see if it is the same.

Are you guys using Linux while experiencing this?

Giovanni

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

Re: STM32L476 USB HAL errors

Postby lilvinz » Tue Feb 28, 2017 11:13 am

Hi Giovanni,

using Linux Mint only.

Cheers

Vinz

rawsock
Posts: 5
Joined: Fri Feb 17, 2017 11:26 am
Been thanked: 1 time

Re: STM32L476 USB HAL errors

Postby rawsock » Tue Feb 28, 2017 3:21 pm

I'm using Win10 64bit, USB3.0, default Windows USB/CDC driver. Maybe it has something to do with USB controller and/or driver timing.

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

Re: STM32L476 USB HAL errors

Postby Giovanni » Mon Mar 06, 2017 2:47 pm

Hi,

It is a time-dependent issue, on my Mint Laptop the problem was also triggered but in a different assertion. I noticed that the problem always occurred while serving an OUT endpoint, it is like IN interrupts are delayed somehow.

I commit a tentative fix: Reversed the order of EP IRQ servicing, OUT first then IN. It appears to fix the issue on both my desktop and my laptop, could you confirm if it is fixed on your side? if so I will proceed with a release ASAP.

Giovanni

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

Re: STM32L476 USB HAL errors

Postby lilvinz » Tue Mar 07, 2017 8:10 pm

Hi Giovanni,

i tested reversing the order with no difference. The problem still persists.

Cheers

Vinz

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

Re: STM32L476 USB HAL errors

Postby Giovanni » Tue Mar 07, 2017 9:17 pm

Does it stop in the same assertion for you?

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 8 guests