Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN3154 Datasheet(PDF) 26 Page - STMicroelectronics

Part # AN3154
Description  CAN protocol used in the STM32 bootloader
PDF  34 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3154 Datasheet(HTML) 26 Page - STMicroelectronics

Back Button AN3154 Datasheet HTML 22Page - STMicroelectronics AN3154 Datasheet HTML 23Page - STMicroelectronics AN3154 Datasheet HTML 24Page - STMicroelectronics AN3154 Datasheet HTML 25Page - STMicroelectronics AN3154 Datasheet HTML 26Page - STMicroelectronics AN3154 Datasheet HTML 27Page - STMicroelectronics AN3154 Datasheet HTML 28Page - STMicroelectronics AN3154 Datasheet HTML 29Page - STMicroelectronics AN3154 Datasheet HTML 30Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 26 / 34 page
background image
Bootloader command set
AN3154
26/34
DocID017063 Rev 5
3.9
Write Protect command
The Write Protect command is used to enable the write protection for some or all Flash
memory sectors. When the bootloader receives the Write Protect command, it transmits the
ACK message to the host if ROP is disabled else it transmits NACK.
After the transmission of the ACK byte, the bootloader waits to receive the Flash memory
sector codes from the application.
At the end of the Write Protect command, the bootloader transmits the ACK message and
generates a system Reset to take into account the new configuration of the option byte.
Note:
1
Refer to Section 3.1: Get command for more details about the sector size for the device you
are using.
2
The total number of sectors and the sector number to be protected are not checked, this
means that no error is returned when a command is passed with a wrong number of sectors
to be protected or a wrong sector number.
If a second Write Protect command is executed, the Flash memory sectors that were
protected by the first command become unprotected and only the sectors passed within the
second Write Protect command become protected.
Figure 20. Write Protect command: host side
1. WP = Write Protect.
The host sends messages as follows:
Command message: Std ID = 0x63, DLC = 0x01, data[0] = N (where 0 < N
≤255).
Command message: Std ID = 0x63, DLC = 0x01..08, data[0] = N (where 0 < N
≤255).
After each message the host receives the ACK or NACK message from the device.



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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