LPC1769 USB cannot write.

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

LPC1769 USB cannot write.

237 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Mega on Mon Jun 29 11:22:31 MST 2015
Hi,
Im using nxpusblib 0.98 since lpcopen doesn't contain Massive Storage Device example.

I can read but cannot write.

The problem is this loop on EndpointStream_LPC.c

"#if defined(__LPC17XX__) || defined(__LPC177X_8X__)
if (endpointselected!=ENDPOINT_CONTROLEP)
while(usb_data_buffer_OUT_size == 0); /* Current Fix for LPC17xx, havent checked for others */
#endif


I tried to remove the code in red zone and starts to write. But it damages sectors 8192(with CSD info). If I eject the device at the next time I connect the device Windows asks to format.

Anyone got any idea?

Best Regards
Daniel
Labels (1)
0 Kudos
Reply
0 Replies