LPC1768 USB Host

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

LPC1768 USB Host

1,060 次查看
alvarolopes
Contributor III

Good Morning!

 

I am using LPC1768FBD100 chip, and using USB host for my project. I am using two timers (1ms and 250us). The priority of USB is higher than timers. I am trying read information from USB inside timer (1ms specifically) but it is not working. Is important to know that I am using file system to read/write USB information. Is important to know too that I am opening the file out of the timer and only reading the content of file inside timer. In this process, when function  FSUSB_DiskReadSectors is called the process is waiting for USB forever. If I open and read information from USB out of timer, everthing is working fine.

 

Someone has this problem?

 

Regards! 

标记 (1)
0 项奖励
回复
1 回复

917 次查看
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Alvaro,

I'm not sure you are going to be able to finish the reading in less than 1 ms, you could do some tests on how much time does it take to finish the reading. Also, I would recommend that you use the f_read function instead of FSUSB_DiskReadSectors.

Hope it helps!

Best Regards,
Carlos Mendoza
Technical Support Engineer

0 项奖励
回复