STM32L476 USB HAL errors Topic is solved
- 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: STM32L476 USB HAL errors
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.
- 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: STM32L476 USB HAL errors
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
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
Re: STM32L476 USB HAL errors
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.
- 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: STM32L476 USB HAL errors
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
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
- 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:
Who is online
Users browsing this forum: No registered users and 59 guests