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/MSP432E411Y: Error CORTEX_M4_0: File Loader: Memory write failed: Could not write register xPSR: execution state prevented access

Part Number: MSP432E411Y
Other Parts Discussed in Thread: EK-TM4C123GXL, MSP-EXP432E401Y, EK-TM4C1294XL, MSP432E401Y

Tool/software: Code Composer Studio

Dear Experts,

I'm just commissioning a new pcb prototype. I use the EK-TM4C123GXL as JTAG adaptor. When using LM-Flasher I'm able to read and verify successfully the processor memory. I can also read the user registers.

When I try to debug the device in CCS I get the following error:

"CORTEX_M4_0: File Loader: Memory write failed: Could not write register xPSR: execution state prevented access"

I checked the hardware signals of the JTAG, they look quite good, thus I don't expect a hardware issue.

What does the error mean? Why is it only with CCS? Any suggestions how to get JTAG running with CCS??

  • Hello Sven,

    When using CCS, did you set the "Connection" to "Stellaris In-Circuit Debug Interface" in the targetConfigs (.ccxml) file?

    Thanks,

    Sai

  • Sven,

    The JTAG debug interface of the EK-TM4C123GXL is the old ICDI interface, therefore you have an uncommon scenario - not necessarily bad, but certainly not validated by us.

    The error you are seeing is the inability of the Flash loader in halting the device - it seems it is running free.

    Looking at the Launchpad's schematics I see the ICDI has a reset signal that is tied to the target device's reset pin. Did you connect this signal?

    The reason is that the flash loaders usually require a device reset before loading code.

    Apart from this, I can't think of any other potential problems. If the LMFlasher is capable of flashing the device, then the CCS driver is at fault and will require further investigation.

    Hope this helps,
    Rafael
  • Hello Sai,
    yes, I changed the connection. Tomorrow I'll try to program the MSP-EXP432E401Y with the EK-TM4C123GXL to check, if the problem is related to our pcb ...
  • Hello Rafael,
    thank you for the explanation of the error. Yes, the reset signal is connected (at least if the pcb is alright). For now I only read and verified the device content with LMFlasher, tomorrow I'll try to program the device with LMFlasher. Further I'll use the MSP-EXP432E401Y as JTAG adaptor.
    I'll let you know about the results.
  • Sven,

    Thanks; in the meantime I will try to solder some headers to my launchpad and try to make this connection.

    One additional detail that I recall: is your device/connection set to SWD or JTAG? That may make a difference, even between the two utilities.

    Regards,
    Rafael
  • Sven, Rafael,

    I did connect the MSP432E401Y device on the MSP-EXP432E401Y LaunchPad to the Stellaris ICDI on the EK-TM4C1294XL LaunchPad.

    As mentioned by Sven, I was able to program the MSP432E401Y with "LM Flash Programmer" but could not program with CCS.

    I will try to find out why this is not working.

    Sven, if you use XDS110 on MSP-EXP432E401Y LaunchPad to program the MSP432E401Y device on your custom board then it should work.

    Thanks,
    Sai
  • Hello Sai,
    thank you for reproducing my issue. Then I'll switch to the XDS110 to get further with pcb commissioning.
    BTW: How can I set the device/connection to SWD or JTAG? Does the XDS110 / MSP432E411 combination support cJTAG? If yes: which pins are used?

  • SProbst said:
    How can I set the device/connection to SWD or JTAG?

    There is an option on the Advanced tab of the Target Configuration:

    SProbst said:
    Does the XDS110 / MSP432E411 combination support cJTAG?

    The MSP432E411 doesn't support cJTAG.

  • Hello Sai,

    with the MSP-EXP432E401Y JTAG works on the new pcb! Thank you for your help!