поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

AN4035 датащи(PDF) 38 Page - STMicroelectronics

номер детали AN4035
подробное описание детали  Flash programming through
PDF  42 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4035 датащи(HTML) 38 Page - STMicroelectronics

Back Button AN4035 Datasheet HTML 34Page - STMicroelectronics AN4035 Datasheet HTML 35Page - STMicroelectronics AN4035 Datasheet HTML 36Page - STMicroelectronics AN4035 Datasheet HTML 37Page - STMicroelectronics AN4035 Datasheet HTML 38Page - STMicroelectronics AN4035 Datasheet HTML 39Page - STMicroelectronics AN4035 Datasheet HTML 40Page - STMicroelectronics AN4035 Datasheet HTML 41Page - STMicroelectronics AN4035 Datasheet HTML 42Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 38 / 42 page
background image
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.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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