
AN2662
CAN bootloader
Doc ID 14156 Rev 1
Note:
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 44.
Write Protect command via CAN: Host side
1.
WP = Write Protect.
The host sends the 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).
7AITFOR!#+
OR.!#+
7AITFOR!#+
OR.!#+
%NDOF70
.!#+
!#+
AI
3ENDWRITEPROTECTMESSAGESTD)$X
3TART70
3ENDMESSAGEWITHTHESECTORCODESAND
THENUMBEROFSECTORSTOBEPROTECTED
.!#+
!#+