Jump to main content

# 1.2.2.2 I2C Bootloader Firmware Update Mode Execution Flow

There are two state machines. One state machine processes the I2C events, parses the received I2C packets and triggers Flash operations. The second state machine performs the Flash operations (read/write/verify).

Bootloader I2C Events Processor Task Flow

- Bootloader I2C Events Processor Task polls and processes the I2C events

- This task is responsible for parsing and responding to the bootloader commands

- Once complete packet is received it sets the BUSY flag in the status byte and also sets appropriate flags for the Flash Programming Task to execute the command (Erase/Program/Verify)

Flash Programming Task Flow

- This task is responsible for executing the Erase/Program and Verify commands

- This task is non-blocking. It submits a Erase/Program request and then checks the status of Flash operation whenever it gets a chance to run

- Once the Flash operation is complete, it clears the BUSY flag and sets appropriate error flags (if any) in the status byte

Rev: G