LPC1768 USB Host

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

LPC1768 USB Host

607 Views
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! 

Tags (1)
0 Kudos
1 Reply

464 Views
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 Kudos