Other Parts Discussed in Thread: MSP430G2553,
Tool/software: Code Composer Studio
Hello!
I have a problem flashing my MSP430G2553 on a custom board. When I try to flash a simple program, the red LED of the debugger blinks 5 times, while the green LED is on constantly, and then both LEDs stay on and I get the error message: "MSP430: Error connecting to the target: Unknown device"
I connected the MSP-FET debugger directly to my Ubuntu 18.04 machine. Connected to the debugger, there is the MSP-FET-432ADPTR adapter board. I use a custom cable (approximately 25 cm long - can this be the issue?) with 10 pins connected to the J2 connector on the adapter board. On the cable, I added a 46k Ohm resistor between RST and Vcc. At first I also added a 1nF Capacitor between RST and Ground, but then I removed it, after I recognized that in the data sheet the Capacitor actually is a MAXIMUM value, not a recommended one. Nevertheless, adding or removing the Cap didn't change anything.
I am using Code Composer Studio Version 9.2.0.00013, and I try to upload this simple program:
#include <msp430g2553.h> /** * main.c */ int main(void) { WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer while(1) {;} return 0; }
All settings in CCS should be the default settings.
The following picture illustrates the connections between the debugger / adapter board and the microcontroller:
The Controller is externally powered with 3.3V, and the switch on the adapter board is set to the left (to enable Vcc_Sense).
Please tell me, if I made any mistakes with the connections. Any help is appreciated!
I try to improve the connection cable and make it shorter. It would be great if I can catch any other mistake early and correct the connection with the new cable.