1.2.5.4 run_Application Function
void run_Application( uint32_t address );
Summary
Runs the programmed application at startup.
Description
This function can be used to run programmed application though bootloader at startup.
If the first 4Bytes of Application Memory is not 0xFFFFFFFF then it jumps to the application start/jump address to run the application programmed through bootloader and never returns.
If the first 4Bytes of Application Memory is 0xFFFFFFFF then it returns from function and executes bootloader for accepting a new application firmware.
Precondition
bootloader_Trigger() must be called to check for bootloader triggers at startup.
Parameters
address : Application Start/Jump address.
Returns
None
Example
void SYS_Initialize()
{
NVMCTRL_Initialize();
PORT_Initialize();
if (bootloader_Trigger() == false)
{
run_Application(APP_START_ADDRESS);
}
CLOCK_Initialize();
}