Index: firmware/App/Modes/Update.c =================================================================== diff -u -r36d3216f0b5fb36aa6a162941d3e0dcddca288a8 -rc9b464d502e3b52fe065ff2ade192d9448107bb8 --- firmware/App/Modes/Update.c (.../Update.c) (revision 36d3216f0b5fb36aa6a162941d3e0dcddca288a8) +++ firmware/App/Modes/Update.c (.../Update.c) (revision c9b464d502e3b52fe065ff2ade192d9448107bb8) @@ -8,7 +8,7 @@ * @file Update.c * * @author (last) Dana Rich -* @date (last) 7-March-2023 +* @date (last) 25-April-2023 * * @author (original) Dana Rich * @date (original) 7-March-2023 @@ -41,35 +41,13 @@ /*********************************************************************//** * @brief - * Sets the flag in FLASH that indicates the devices requests to enter into - * update mode from the bootloader. - * @details Inputs: none - * @details Outputs: Memory location reflects desired status - * @return none - *************************************************************************/ -bool setBootloaderFlag( void ) -{ - register uint32_t src = (uint32_t)&g_pulUpdateSuccess[1]; - register uint32_t dst = APP_STATUS_ADDRESS; - unsigned int bytes = 16; - - Fapi_issueProgrammingCommand((uint32_t *)dst, - (uint8_t *)src, - (uint32_t) bytes, - 0, - 0, - Fapi_AutoEccGeneration); - - while(Fapi_checkFsmForReady() == Fapi_Status_FsmBusy); - - return (FAPI_GET_FSM_STATUS == Fapi_Status_Success); -} - -/*********************************************************************//** - * @brief * Sets the software reset bits [15-14] of the System Exception Control * Register. Setting bit 15, or clearing bit 14 will cause a system * software reset. + * + * This will leave the device in a state where the bootloader will not be + * left until the next power cycle or a command the start the main app + * is received by the bootloader. * @details Inputs: none * @details Outputs: RM46x reboots * @return none Index: firmware/App/Modes/Update.h =================================================================== diff -u -rdad52d69c15f96d2b7ca7e22138f5d07a3948a9f -rc9b464d502e3b52fe065ff2ade192d9448107bb8 --- firmware/App/Modes/Update.h (.../Update.h) (revision dad52d69c15f96d2b7ca7e22138f5d07a3948a9f) +++ firmware/App/Modes/Update.h (.../Update.h) (revision c9b464d502e3b52fe065ff2ade192d9448107bb8) @@ -19,7 +19,6 @@ #define __UPDATE_H__ void startBootloader( void ); -bool setBootloaderFlag( void ); void rebootSystemNow( void ); #endif /* __UPDATE_H__ */