USB ROM HID + FreeRTOS problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

USB ROM HID + FreeRTOS problem

1,148 次查看
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.
标签 (1)
0 项奖励
回复
1 回复

1,128 次查看
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 项奖励
回复