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

Post by lilvinz »

Bumping this thread as it has been marked as resolved.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32L476 USB HAL errors

Post by Giovanni »

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

Post by lilvinz »

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

Post by rawsock »

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: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32L476 USB HAL errors

Post by Giovanni »

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

Post by lilvinz »

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

Post by rawsock »

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: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32L476 USB HAL errors

Post by Giovanni »

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

Post by lilvinz »

Hi Giovanni,

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

Cheers

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

Re: STM32L476 USB HAL errors

Post by Giovanni »

Does it stop in the same assertion for you?

Giovanni
Post Reply