This section explains the typical sequence
followed by the BSL host for loading the image
through the Bootloader. This sample sequence
erases the flash memory and programs new firmware
in it.
- Bootloader shall be started through one of the
following methods:
- Pin based invocation (GPIO)
- Application request
- Debug Mailbox command
- Once it is invoked, send the connection
command to establish connection with the BSL
through the desired interface.
- If UART interface is used, the baud rate can
be changed to a higher value, to speed up further
communication and is optional.
- To erase the flash memory completely use the
Mass erase command. Only when there is a need to
update non-main flash use factory reset command.
Because if the non-main flash is erased and left
unprogrammed the device is locked.
- Program the firmware image
- Do the CRC verification of the programmed
memory region to check the correctness of data
programmed. This is an optional step.
- Application can be started with 'Start
application' command.