Jump to main content

# 1.7.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 the Bootloader Configurations section for additional details.

## Precondition

- Live Update has to be completed before calling this function

## Parameters

None.

## Returns

None.

## Example

    bootloader_SwapAndReset();

Rev: G