1 2 3 4 | FLASH.Create <unit_number> <physical_range> <sector_size> <family_code> <bus_width> <family_code>: I28F001B | I28F200B | ... | TARGET | EEPROM | NOP <bus_width>: Byte | Word | Long | Quad |
1 2 | FLASH.RESet FLASH.Create 1. 0x0 -- 0x7FFFFF 0x10000 AM29LV100 Word |
1 | FLASH.Erase <unit> | <address_range> | ALL |
1 2 | FLASH.Erase 0x0 -- 0x1FFFF FLASH.Erase ALL |
1 | FLASH.Program [<unit> | <address_range> | ALL | OFF] |
1 2 3 4 | FLASH.Program ALL Data.LOAD.Binary data.bin /Word <- 装载数据到FLASH空间 FLASH.Program OFF … |
1 | FLASH.TARGET <code_address> <data_address> [<buffer_size>] [<file>] <code_address> |
1 2 3 4 5 6 7 | FLASH.RESet FLASH.Create 1. 0x0--0x3FFFFF 0x20000 TARGET Word FLASH.Target 0xA0000000 0xA0001000 0x1000 ~~\demo\arm\FLASH\word\i28f200j3.bin FLASH.Erase 1. FLASH.Program 1. Data.LOAD.Elf my_application.elf /Word FLASH.Program OFF |
1 2 3 4 5 6 7 8 9 10 11 12 | struct { ulong32 flashaddr; ulong32 flashwidth; ulong32 width; ulong32 offset; ulong32 addr; ulong32 size; ulong32 reserved; ulong32 status; /* in: 1=program, 2=erase, out: 0=o.k., 0x100=fail */ uchar8 data[4096]; /* Programming Buffer, size can be made smaller (FLASH.TARGET command) */ } FlashParameter; |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |