Hello,
Have an error when programing MSP432E401Y with XDS110. It seems to be related to the crystal. Our code is RTOS running at 120MHz. The crystal is 25MHz. It popped up an error message on code composer. The error messages are different in JTAG and SWD mode. The same code works fine with Launchpad.
JTAG Mode
SWD Mode
The workaround is to disconnect the series resistor of the crystal circuit. Program the MCU without the oscillator. It will program successfully but the debugger wouldn't run without the oscillator. Then we put the resistor back and the debugger runs fine. After the first successful programing, re-programming works every time.
The design of the oscillator is based on the reference design, a 25MHz crystal (NDK NX5032GA-25MHZ) with load capacitors and a series resistor. We started with 1kohm resistor and go up to 3kohm. I have seen the programming going through with 3kohm but not consistent. I have checked the oscillator input pin (OSC0) with an oscilloscope and the waveforms looked fine with either 1kohm or 3kohm resistors. Here are the schematic and the layout.
The waveform with a 1K series resistor.
The waveform with 3K series resistor.
I don't see how the clock affects the programming, as the signal looks correct and clean. I appreciate any comments.
Long Yu