-
Notifications
You must be signed in to change notification settings - Fork 0
UART Protocol
The first data packet contains the following information:
- Program length
- Firmware Version
- Board ID
The program length is to verify that there is space in the flash for the application. An error will be returned if there is not enough space. The firmware version will be stored on the flash. This can be read by the application code. The board ID is to check that the firmware to be loaded is compatible with the board. An error will be returned if it is not compatible. For example, firmware written for the Power Board will not be permitted to be loaded to the Motor Controller. Figure 1 shows the details for this packet type.
Figure 1: First Data Packet definition
The middle data packet is where the program data is sent. The majority of the packets during the bootloading process will be of this type. Figure 2 shows the details for this packet type.
Figure 2: Middle Data Packet definition
Figure 3: Last Data Packet definition
Bootloader_STM32F4
Website: AUVIC