How to make LED blink when OTA upgrade

Hi, Team:

I want to make an LED blink during OTA upgrade and stop blinking after upgrade.

How do I configure prj.conf, sysbuild.conf, or provide some demos

Thank you.

BR

Dongdong Song

Parents
  • The CONFIG_MCUBOOT_INDICATION_LED option only light up an LED but won't blink.

    Blinking would require adding code to mcuboot. Can done with a module. That code can be triggered using CONFIG_MCUBOOT_ACTION_HOOKS calling mcuboot_status_change(mcuboot_status_type_t status) function that your module will need to implement.

    No idea if the default flash layout leaves enough room for this modification in the mcuboot partition.

Reply
  • The CONFIG_MCUBOOT_INDICATION_LED option only light up an LED but won't blink.

    Blinking would require adding code to mcuboot. Can done with a module. That code can be triggered using CONFIG_MCUBOOT_ACTION_HOOKS calling mcuboot_status_change(mcuboot_status_type_t status) function that your module will need to implement.

    No idea if the default flash layout leaves enough room for this modification in the mcuboot partition.

Children
No Data
Related