LPC1769 USB cannot write.

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

LPC1769 USB cannot write.

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