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.

MSP432P401R: 05ADD0WG4 REV D

Part Number: MSP432P401R

Hello,

I have a trouble for loading programs to a MSP432P401R. The following lines are a copy paste of console.

CS_DAP_0: GEL Output: Memory Map Initialization Complete
CS_DAP_0: GEL Output: Halting Watchdog Timer
CS_DAP_0: WARNING   : On MSP432P401R hitting a breakpoint cannot be detected by the debugger when the device is in low power mode.
                         Click the pause button during debug to check if the device is held at the breakpoint.
CORTEX_M4_0: GEL Output: Memory Map Initialization Complete
CORTEX_M4_0: GEL Output: Halting Watchdog Timer
CORTEX_M4_0: WARNING   : On MSP432P401R hitting a breakpoint cannot be detected by the debugger when the device is in low power mode.
                         Click the pause button during debug to check if the device is held at the breakpoint.
CORTEX_M4_0: Flash Programmer: Hard reset
CORTEX_M4_0: Writing Flash @ Address 0x00000000 of Length 0x00000290
CORTEX_M4_0: Flash Programmer: Uploading RAM loader to device
CORTEX_M4_0: Flash Programmer: Device init finished
CORTEX_M4_0: Flash Programmer: Erasing main memory
CORTEX_M4_0: Flash Programmer: Mass erase finished
CORTEX_M4_0: Flash Programmer: Verify error. Writing to Flash failed!
CORTEX_M4_0: Flash Programmer: Write speed 13.3 kB/sec
CORTEX_M4_0: Flash Programmer: Exit flash programming
CORTEX_M4_0: Flash Programmer: Hard reset

SETUP:

I am using the launchpad Rev2.1 as a programmer and the chip MSP432P401R is assembled in a board the followings ports TCK, TMS, TDO, TDI, RST, which are connected to the corresponding pins of the launchpad.

Schematic for rst pin. (pull up resistor 47k and pull down capacitor 1nF.

Schematic for the rest of the pins. JTAG TCK pull down resistor 10k  and JTAG TMS pull up resistor 10k.

These pins are conneted to the pins of the XDS110-ET rev. 1.1 side of the launchpad.

TEST:

In order to program the chip I set the target with the following parameters.

Then launched this configuration and connected the target, made a factory reset and restart the target.

Again, launch the configuration, connect the target and load the file to the target. In this moment the error appears. Also this error appear if I choose the option verify the program.

NOTE THAT.

I am using as program the example blinked_msp432p401r, and it can be loaded to the chip of the launchpad without this trouble.

When I check the disssembly page I realized that from 0x0000003e the chip is not overwritten in contrast to the chip (that works) on the launchpad.

Thank you very much

  • Also, I think that it can be relevant, after trying to load the program, the chip goes to (in reset).

    And I get the flag -1266. Trouble Halting Target CPU: (Error -1266 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 9.4.0.00129)

  • Finally I solved the issue and I would like to share the solution. The problem was the VCORE pin was badly connected to 3.3V. I assumed that the MCU was correctly connected, because the test connected of CCS was successful and I was able to check the memory of the MCU.

    So, leason learnt, check more than three times the pin connection.