SLAAEC9 july 2023 MSPM0L1306 , MSPM0L1306
There are some special commands different from the ROM-based BSL commands, they are one-byte commands and are listed in Table 6-2.
LFU BSL Special Commands | Packet | Response (package format) |
---|---|---|
Get App state | 0x55 | Yes (8 bytes: 0x51 + app state flag (1 byte) + app1 area start address (3 bytes) + app2 area start address (3 bytes) ) |
Resume bootloader task | 0xAA | Yes (1 byte: 0xBB) |
This command is used to get the application code execution status, to see if application code 1 or application code 2 is executed, or no application code in the device. Table 6-3 describes the application state flags.
Variable | Value | Description |
---|---|---|
App state flag | 0 | No application running |
1 | App1(application in app1 area) is running | |
2 | App2(application in app2 area) is running |
This command also returns the start address of application space 1 and space 2. This information can be used to do system integrity verification before starting firmware upgrade process
Bootloader task is suspended when device is executing application code, this command is used to force bootloader task back to active status before starting firmware upgrade process.