1.6.5.4 bootloader_SwapAndReset Function

C

void bootloader_SwapAndReset( void );

Summary

Updates the Serial number in Inactive Bank and triggers Reset.

Description

This function can be used by the application to update the serial number in inactive bank and trigger reset after Live Update is Completed.

Switcher in Boot Flash Memory should know the address at compile time where the serial number is stored in each bank. It reads the serial number from both banks, Compares the values and maps the bank with highest serial number to lower region.

  • Note: This Function will be generated only for MIPS based MCUs with dual flash bank support and when the dual bank for live update option is selected in MCC bootloader component settings

    • Refer to Bootloader Configurations section for more details

Precondition

  • Live Update has to be completed before calling this function

Parameters

None

Returns

None

Example

bootloader_SwapAndReset();