Avoid getting locked out of CC2538 bootloader
mainOn the CC2538, once a valid image is flashed, the "Image Valid" bits are set to 0, and the bootloader will not start automatically on reset. To prevent being "locked out" (unable to communicate via serial), you must enable the bootloader backdoor in your firmware.
Enabling the Backdoor
Enable the backdoor by configuring the 8-bit boot loader backdoor field in the CCA area in flash.
Example Configuration:
Set the field to 0xF3FFFFFF. This configures the bootloader to start when pin PA3 is pulled low during boot. On a SmartRF06 board, this is achieved by holding the select button while pushing the EM reset button.
Recovery: If you are locked out, you must use a JTAG programmer to erase the image. This resets the image valid bits and re-enables the bootloader on the next reset.