| 数据搜索系统,热门电子元器件搜索 |
|
AN4035 数据表(PDF) 39 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4035 数据表(HTML) 39 Page - STMicroelectronics |
|
39 / 42 page ![]() AN4035 Creating the Flash programming tool Doc ID 022669 Rev 2 39/41 1. Setup r1 as the stack pointer. 2. Setup r3 to point to the SSD_CONFIG structure in internal SRAM. 3. Setup r4 to point to the destination address to be programmed in Flash. This address must be aligned on a double word boundary. 4. Setup r5 to the size of the data in bytes to be programmed to Flash. This size should be a multiple of 8 and the combination of the destination address and size should be entirely contained in the main array or shadow block. 5. Setup r6 to point to the source buffer of data in internal SRAM to be programmed to Flash. This address should be aligned on a word boundary. 6. Setup r7 with the pointer to the call back function. 7. Set the PC to the beginning of FlashProgram minus 0x4 and load the IR with a nop (0x60000000). 8. Exit debug mode and begin execution of the driver. 9. Poll the OnCE Status Register to determine when debug mode has been re-entered. 10. When debug mode has been entered, read the return value in r3. 6.2.6 Using other drivers There are other useful drivers provided with the driver set. For example, BlankCheck can be used to verify that a particular region is erased, and ProgramVerify can be used to verify that the data was programmed correctly. The method to use these other drivers is similar to the above mentioned drivers except that the GPRs needs to be setup appropriately for that particular driver. |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |