SLAU319AF July 2010 – September 2022
Function number: 2
Function Name: Return to BSL
Description: Any supplied function number calls the return to BSL function. This function can be used if the BSL has written a program into flash or RAM, started that program by "Set PC", and then the program needs to return to the BSL. This function executes the following code:
RETURN_TO_BSL POP.W RET_low ; remove first word from return addr POP.W RET_high
; remove second word from return addr RETA
; should now return to the BSL location