This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2538: Entering bootloader without writing to flash

Part Number: CC2538

Hi,

I'm currently writing software to perform flashing of our devices and I'm having some troubles entering the bootloader from the flash image. Our current way of doing this is to erase the whole CCA page (by using the ROM Utility Function Library) and resetting the device, thus forcing it to enter the bootloader. This works, but it puts the device permanently in the bootloader even after power cycling it. Is there another way of entering the bootloader that is less permanent? Something like writing to the SRAM or the like?

Regards,
Carl Smedstad, Tele Radio Group

  • Hey Carl,

    When you erase the Customer Configuration Area and reset, the CC2538 enters Bootloader mode because the Image Valid section of the CCA is cleared. As Table 8-3 of section 8.6 of the CC2538 TRM says, the image valid word must be `0x00000000` to indicate a valid image in flash. Any image you try to program with the serial bootloader this way must have a valid CCA along with it.

    Or you could write your own Update code using the ROM functions. This would remove the requirement of marking the image invalid and resetting.

    Thanks,
    Seth