Using:
- CCSv12.3.0
- XDS110 - built into the MSP-EXP432E401Y development kit
I'm working with a customer that has a custom board using the MSP432E4 device. They intentionally did not use an external crystal connected to OSC0/OSC1. Our documentation states that this is okay as long as OSC0 is connected to ground, as it is on the customer's custom board. The device is factory new without having been programmed previously.
In this configuration, we cannot "Connect to Target" successfully. We get:
CS_DAP_0: Error connecting to the target: (Error -613 @ 0x0) The target indicates that it is busy. Either try the SWD request again, or abort the transaction. (Emulation package 9.11.0.00128)
This is despite the "Test Connection" fully succeeding.
In suspicion that this may have had something to do with not having a crystal, I took the MSP0ESP432E401Y development kit to try and reproduce the issue. I started with a working configuration, which worked with both SWD and 4-wire JTAG mode. Next I removed the crystal from the board and tied OSC0 to ground. Now I can fully reproduce the issue my customer is facing. It doesn't matter if I use SWD or 4-wire JTAG mode.
The Using SimpleLink MSP432E4 microcontrollers over the JTAG interface document seems to me to state that a crystal should not be required. Here are the troubleshooting steps.
If the JTAG IR and DR integrity scan-test succeeds, the device core is out of reset and may not have initialized itself. If, however, the integrity scan-test fails, the issue is in the power up process. Perform the following steps to make sure every known cause is eliminated and to find the source of the issue:
- Check with a digital multimeter that the VDD and VDDA supply rails are 3.3 V.
- If not, then check the power supply aspect of the design.
- Check with a digital multimeter that the VDDC rail is 1.2 V.
- If not and providing a power from an external power source, make sure that the current limit is set around 150 mA.
- If the VDDC rail is at 1.2 V, make sure that the capacitance on the rail is as per the device-specific data sheet and the layout of the capacitors are as per the system design guidelines and application reports (see Section 8).
- Check whether the JTAG header is correctly mounted and the TDIS pin (if available) is connected to GND.
- Check on the JTAG header the VTREF pin is 3.3 V.
- Check whether the reset pin of the microcontroller is at 3.3 V.
- If not, connect an external pullup.
- If using an external crystal oscillator, connect an oscilloscope on pin OSC0.
- If the crystal is not oscillating, check the solder on the crystal and capacitors.
- Always use the recommended crystals listed in the device-specific data sheet.
- If not using an external crystal oscillator, make sure that the pin OSC0 is connected to GND.
- If using a MSP432E4 device, make sure that the RBIAS resistor is populated according to the specification in the device-specific data sheet.
The device datasheet also states that an external crystal is not required.
How can we get CCS to successfully "Connect to Target" when not providing an external crystal on OSC0/OSC1 and connecting OSC0 to ground?
Thanks,
Stuart