전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

AN3154 데이터시트(PDF) 20 Page - STMicroelectronics

부품명 AN3154
상세설명  CAN protocol used in the STM32 bootloader
PDF  34 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3154 데이터시트(HTML) 20 Page - STMicroelectronics

Back Button AN3154 Datasheet HTML 16Page - STMicroelectronics AN3154 Datasheet HTML 17Page - STMicroelectronics AN3154 Datasheet HTML 18Page - STMicroelectronics AN3154 Datasheet HTML 19Page - STMicroelectronics AN3154 Datasheet HTML 20Page - STMicroelectronics AN3154 Datasheet HTML 21Page - STMicroelectronics AN3154 Datasheet HTML 22Page - STMicroelectronics AN3154 Datasheet HTML 23Page - STMicroelectronics AN3154 Datasheet HTML 24Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 20 / 34 page
background image
Bootloader command set
AN3154
20/34
DocID017063 Rev 5
Figure 15. Go command: device side
The STM32 send the messages as follows:
ACK message: Std ID = 0x21, DLC = 1, data[0] = ACK if content of the command is correct
else data[0] = NACK
3.7
Write Memory command
The Write Memory command is used to write data to any valid memory address (see note)
of RAM, Flash memory, or Option byte area. When the bootloader receives the Write
Memory command, (message with 5 bytes data length, data[0] is the address MSB, data[3]
is the LSB and data[4] is the number of data bytes to be received), it then checks the
received address. For the Option byte area, the start address must be the base address of
the Option byte area (see note) to avoid writing inopportunely in this area.
Note:
Refer to Section 3.1: Get command for more details about the valid memory addresses for
the device you are using.
If the received address is valid, the bootloader transmits an ACK message, otherwise it
transmits a NACK message and aborts the command. When the address is valid, the
bootloader:
•
Receives the user data (N bytes) so the device receives N/8 messages (each message
contains 8 data bytes)
•
Programs the user data into memory starting from the received address
•
At the end of the command, if the write operation was successful, the bootloader
transmits the ACK message; otherwise it transmits a NACK message to the application
and aborts the command
The maximum length of the block to be written for the STM32 is 256 bytes.
If the Write Memory command is issued to the Option byte area, all options are erased
before writing the new values, and at the end of the command the bootloader generates a
system Reset to take into account the new configuration of the option byte.



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


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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