Index: firmware/App/Modes/Update.c =================================================================== diff -u -rd2dfbe0338029375e84218c3f090f1971d9878ae -rfcde872fd7bdadac4db7d2e8903974bfbbc2b125 --- firmware/App/Modes/Update.c (.../Update.c) (revision d2dfbe0338029375e84218c3f090f1971d9878ae) +++ firmware/App/Modes/Update.c (.../Update.c) (revision fcde872fd7bdadac4db7d2e8903974bfbbc2b125) @@ -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