| поискавой системы для электроныых деталей |
|
AN4035 датащи(PDF) 38 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4035 датащи(HTML) 38 Page - STMicroelectronics |
|
38 / 42 page ![]() Creating the Flash programming tool AN4035 38/41 Doc ID 022669 Rev 2 1. Setup r1 as the stack pointer. 2. Setup r3 to point to the SSD_CONFIG structure in internal SRAM. 3. Setup r4 with the lock indicator. 4. Setup r5 with the lock state. 5. Setup r6 with the correct password. 6. Set the PC to the beginning of SetLock minus 0x4 and load the IR with a nop (0x60000000). 7. Exit debug mode and begin execution of the driver. 8. Poll the OnCE Status Register to determine when debug mode has been re-entered. 9. When debug mode has been entered, read the return value in r3. 6.2.4 FlashErase When the appropriate blocks have been locked or unlocked, then an erase of the unlocked blocks can be performed. This function erases the enabled blocks in the main array or the shadow row. Input arguments together with relevant Flash module status is checked, and relevant error code returns if there is any error. The steps to call the FlashErase driver are listed below. 1. Setup r1 as the stack pointer. 2. Setup r3 to point to the SSD_CONFIG structure in internal SRAM. 3. Setup r4 to indicate either the main array or shadow block to be erased. Erasing the shadow block without re-programming the censorship control information prior to a reset results in the device being censored. 4. Setup r5 to select the low address array blocks to be erased. 5. Setup r6 to select the mid address array blocks to be erased. 6. Setup r7 to select the high address array blocks to be erased. 7. Setup r8 with the pointer to the call back function. 8. Set the PC to the beginning of FlashErase minus 0x4 and load the IR with a nop (0x60000000). 9. Exit debug mode and begin execution of the driver. 10. Poll the OnCE Status Register to determine when debug mode has been re-entered. 11. When debug mode has been entered, read the return value in r3. 6.2.5 FlashProgram When Flash blocks have been erased, they then can be programmed. To program the Flash, the internal SRAM should first be written with the data to be programmed in Flash. Depending on the size of the data buffer in internal SRAM and the size of the data to be programmed to Flash, the FlashProgram driver may need to be called multiple times. This function programs the specified flash areas with the provided source data. Input arguments together with relevant flash module status is checked, and relevant error code is returned if there is any error. The steps to call the FlashProgram driver are listed below. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |