USB ROM HID + FreeRTOS problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB ROM HID + FreeRTOS problem

645 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DodigI on Sat Aug 23 03:42:58 MST 2014
Hello,
my USB ROM HID is working correctly and enumeration is successful.

However, if I only add xTaskCreate(...) in main before or after USB initialization code, without even starting the scheduler, the USB enumeration fails.

What could cause the problem? I have enough heap memory for the thread. I comment xTaskCreate and USB works, uncomment and it fails.

Thanks.
Labels (1)
0 Kudos
1 Reply

625 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DodigI on Sat Aug 23 03:59:45 MST 2014
Solved,
xTaskCreate disables interrupts via PRIMASK. vTaskStartScheduler(); clears the PRIMASK...
0 Kudos