mcb4300 usbd_rom_msc_ram save to flash.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

mcb4300 usbd_rom_msc_ram save to flash.

1,080件の閲覧回数
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)
  • USB

0 件の賞賛
返信
3 返答(返信)

1,034件の閲覧回数
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,034件の閲覧回数
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,034件の閲覧回数
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 件の賞賛
返信