Moteur de recherche de fiches techniques de composants électroniques
  French  ▼
ALLDATASHEET.FR

X  

AN3154 Fiches technique(PDF) 7 Page - STMicroelectronics

No de pièce AN3154
Description  CAN protocol used in the STM32 bootloader
PDF  34 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricant  STMICROELECTRONICS [STMicroelectronics]
Site Internet  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3154 Fiches technique(HTML) 7 Page - STMicroelectronics

Back Button AN3154 Datasheet HTML 3Page - STMicroelectronics AN3154 Datasheet HTML 4Page - STMicroelectronics AN3154 Datasheet HTML 5Page - STMicroelectronics AN3154 Datasheet HTML 6Page - STMicroelectronics AN3154 Datasheet HTML 7Page - STMicroelectronics AN3154 Datasheet HTML 8Page - STMicroelectronics AN3154 Datasheet HTML 9Page - STMicroelectronics AN3154 Datasheet HTML 10Page - STMicroelectronics AN3154 Datasheet HTML 11Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 7 / 34 page
background image
DocID017063 Rev 5
7/34
AN3154
CAN settings
33
Next, the code initializes the serial interface accordingly. Using this calculated baud rate, an
acknowledge byte (0x79) is returned to the host, which signals that the STM32 is ready to
receive commands.
2
CAN settings
The STM32 CAN is compliant with the 2.0A and B (active) specifications with a bitrate up to
1 Mbit/s. It can receive and transmit standard frames with 11-bit identifiers as well as
extended frames with 29-bit identifiers.
Figure 3 shows a CAN frame that uses the standard identifier only.
Figure 3. CAN frame
In this application, the CAN settings are:
•
Standard identifier (not extended)
•
Bitrate: at the beginning it is 125 kbps; during runtime it can be changed via the speed
command to achieve a maximum bit rate of 1 Mbps.
The transmit settings (from the STM32 to the host) are:
•
Tx mailbox0: On
•
Tx mailbox1 and Tx mailbox2: Off
•
Tx identifier: (0x00, 0x01, 0x02, v03, 0x11, 0x21, 0x31, 0x43, 0x63, 0x73, 0x82, 0x92)
The receive settings (from the host to the STM32) are:
•
Synchronization byte, 0x79, is in the RX identifier and not in the data field.
•
RX identifier depends on the command (0x00, 0x01, 0x02, 0x03, 0x11, 0x21, 0x31,
0x43, 0x63, 0x73, 0x82, 0x92).
•
Error checking: If the error field (bit [6:4] in the CAN_ESR register) is different from
000b, the message is discarded and a NACK is sent to the host.
•
In FIFO overrun condition, the message is discarded and a NACK is sent to the host.
•
Incoming messages can contain from 1 to 8 data bytes.
Note:
The CAN bootloader firmware supports only one node at a time. This means that CAN
Network Management is not supported by the firmware.



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


Fiches technique Télécharger

Go To PDF Page


Lien URL



ALLDATASHEET vous a-t-il été utile ?  [ DONATE ] 

À propos de Alldatasheet   |   Publicité   |   Contactez-nous   |   Politique de confidentialité   |   Lien vers la fiche technique    |   Echange de liens   |   Fabricants
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