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.

CCS/MSP432E401Y: Debugging an application with a customized flash bootloader

Part Number: MSP432E401Y


Tool/software: Code Composer Studio

I have developed an automated online firmware update support, using Amazon S3 and a "dual flash" solution.


The solution consists of two parts:

1) The firmware application implements TI's HTTPS Client example and connects to Amazon S3 to download the new firmware payload. The payload is downloaded to the second part of the flash (at address 0x00080000) and after that I write a "magic word" that will inform the bootloader that there is a new payload available.

2) A customized flash bootloader which is based on TI's OAD Bootloader available in SimpleLink SDK BLE Plugin 3.20.00.24. The introduction of this bootloader means that we move the firmware application to address 0x00004000.

After finalizing this solution, I came across the following issues:

  1. Since the firmware application start address has now moved to 0x00004000, running the debugger does not work without reverting the start address in the msp432e401y.cmd memory mapping file and the release.cfg file in TI-RTOS. So my question is whether there is a way to modify the start address in the CCS debugger settings to run the firmware application by keeping the new memory mapping?

  2. After a successful duplication of the payload (residing in 0x00080000) into the firmware application area (0x00004000), and a restart of the MCU, I get the following SWD error:
    "Error connecting to the target: (Error -614 @ 0x0) The target indicates there is an error condition from a previous SWD  request."
    Is there anything I can do in the flash bootloader in order to prevent this SWD failure from happening? Right now I need to power off the device.

Any help or ideas appreciated.