Link-2 external storage using USB0

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

Link-2 external storage using USB0

5,329 次查看
QM
Contributor II

Hello again NXP community,

I am using 2 Link-2 boards with one being debug and the other being the target. 

The next phase of my project involves storing data from my target board at a rate of ~8kB/s for around an hour resulting in ~30MB of data. These numbers are not final and can be changed but the point is that I will need some external storage that is larger than the flash storage that comes on the Link-2. I am also not able to use a computer, it has to be some sort of small chip storage unit like a USB stick or a larger flash chip. 

Could someone recommend the easiest way of proceeding with using the USB0 port on the target Link-2 to store data every second?

I am working with an embedded artists project which includes the attached USB files plus many more. I am hoping to work with them to get a solution.

Thanks in advance,

Quinn

0 项奖励
回复
7 回复数

5,317 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Quinn,

How about have a look at the demo"usb_rom_msc_ram" under lpcopen。

 

BR

Alice

 

0 项奖励
回复

5,288 次查看
QM
Contributor II

Hi Alice, 

Apologies for the delay in my response. Thanks for your reply. 

I had a look at that USB project, but it turns out that USB is more power hungry than we want for our design. 

Because of this I have bought an SD card to SPI interface board for use with the SSP1 pins on J3 of the Link2. 

Any hints getting this system working?

Regards, 

Quinn

0 项奖励
回复

5,267 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello QM,

There is no internal flash with LPC4370, so only can save data in external flash.

 

BR

Alice

 

0 项奖励
回复

5,261 次查看
QM
Contributor II

Hi Alice, 

I am using the SSP in SPI mode to work with an SD card. I am still writing the initialisation code for the SD card.

I am having a problem now with receiving a byte from the SD card. I only have a receiving function which reads from the data register, however when I do this my clock stops working. I think I need the clock to be on the whole time, for sending and receiving. What can I do to keep the clock on the whole time?

Regards, 

Quinn

0 项奖励
回复

5,242 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello ,

" my clock stops working"

->> Which clock? CPU clock?

 

0 项奖励
回复

5,234 次查看
QM
Contributor II

No I mean my Source Clock signal from the LPC-Link2 to my SD card stops when I use my read from SPI function.

Quinn

0 项奖励
回复

5,220 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

This should working, you can refer to demo code check configuration, and use Logic analysis measure clock signal. 

 

0 项奖励
回复