Saturday, September 23rd 2017, 12:27am UTC+2

You are not logged in.

  • Login
  • Register

nboutin

Beginner

Date of registration: Dec 10th 2015

Posts: 2

1

Wednesday, June 15th 2016, 4:13pm

USBH_Init & USBH_Exit

Hi,

I don't understand why this simple code would not work properly :

C/C++ Source code

1
2
3
4
5
void MainTask(void)
{
  USBH_Init();
  USBH_Exit();
}


USBH_Exit() get stuck in a while loop in USBH_HW_STM32F2xxFS.c file in function static void _RemoveDriver(USBH_HC_HANDLE hHostController).
It seems that the variable _RemoveComplete is never set to a value different from 0.

For information:
- embUSB-Host version: V1.16e
- µC : STM32L476VG

Thanks for your help,
Nicolas

SEGGER - Yan

Super Moderator

Date of registration: Feb 28th 2014

Posts: 23

2

Tuesday, May 2nd 2017, 9:48am

The USBH and ISR tasks have to be present for exit to work.
Furthermore exit had a couple of issues when used with the ST drivers in V1.16. This was fixed in V1.30b.

Similar threads