mcb4300 usbd_rom_msc_ram save to flash.

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

mcb4300 usbd_rom_msc_ram save to flash.

1,074 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by esso on Thu Feb 12 08:10:25 MST 2015
Hi all,

I am using LPCXpresso_7.5.0_254 sample for  usbd_rom_msc_ram sample.
I am trying to save data received in flash instead of RAM.
The problem is that translate_wr() doesn't receive the data, which prevents me from writing it to flash.

How can I get the written data?
Another issue, does translate_wr() is called from isr context?
If so, how can i do the write to flash not from ist context?

TIA,
标签 (1)
0 项奖励
回复
3 回复数

1,028 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Sat Mar 07 11:59:06 MST 2015
Hi Tia,
You can store data in a buffer and write flash using IAP as mentioned in that thread.
0 项奖励
回复

1,028 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by esso on Sun Feb 15 02:29:28 MST 2015

Quote: mc
Hi Tia,
See below thread.

http://www.lpcware.com/content/forum/usbdrommscram-example-shows-wrong-disk-size-while-connecting-it...



Hello mc,

Thank you for your reply.
According to the above link, if i want to write the data into flash, i need to replace the 'g_memDiskArea' with DMA buffer of the flash instead?
Another question, does translate_wr() is called before the data is written to 'g_memDiskArea'? if it called after, then how do i get the data of the last write?


btw, my name is esso. TIA means 'Thanks In Advanced"... :)

Thanks.
0 项奖励
回复

1,028 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Thu Feb 12 09:30:10 MST 2015
Hi Tia,
See below thread.

http://www.lpcware.com/content/forum/usbdrommscram-example-shows-wrong-disk-size-while-connecting-it...
0 项奖励
回复