There are two cases when you want to start firmware upgrade process:
- If there is only bootloader code executed in the device, the bootloader task
waits for the firmware upgrade command from host, so no extra action is required
before starting firmware upgrade process in this case.
- If there are both bootloader and application code executed in the device, the
bootloader task is suspended when application code is executed. In this case,
you need to force bootloader task status from suspend to active before starting
firmware upgrade process, you can send one byte invoke command 0xAA via UART to
achieve this goal.