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.
I have an old MSP430 design that started with earlier CCS versions 4 or 5. The devices was in-use and has worked for years, and suddenly stopped responding.
It is using theMSP430G2231 as shipped on the Launchpad board with USB interface.
Now I've updated to CCS 6.1.3 on Windows. The code I'm trying to debug is unchanged.
When I try to run the debugger, I get "Error initializing emulator: Could not find MSP-FET430UIF on specified COM port"
The port enumerates in Device Manager, and is reported as "MSP430 Application UART"
This error has been around sporadically for years, but I've never found an actual root cause or solution.
I've tried replacing the Launchpad with another one but get the same error.
The code is based on the early example code from when the Launchpad was introduced:
//******************************************************************************
// MSP430G2xx1 Demo - Timer_A, Ultra-Low Pwr UART 9600 Echo, 32kHz ACLK
// ACLK = TACLK = LFXT1 = 32768Hz, MCLK = SMCLK = default DCO
// //* An external watch crystal is required on XIN XOUT for ACLK *//
//
// MSP430G2xx1
// -----------------
// /|\| XIN|-
// | | | 32kHz
// --|RST XOUT|-
// | |
// | CCI0B/TXD/P1.1|-------->
// | | 9600 8N1
// | CCI0A/RXD/P1.2|<--------
//
// D. Dang
// Texas Instruments Inc.
// October 2010
// Built with CCS Version 4.2.0 and IAR Embedded Workbench Version: 5.10
Hi Tim
>> It is using theMSP430G2231 as shipped on the Launchpad board with USB interface.
Could you please explain what MCU board you are used? Is it the target board on https://www.ti.com/product/MSP430G2231#design-development or the user board?
and what debugger are used? is it MSP-FET430UIF or MSP-FET?
Thanks
The board is the original MSP-EXP430G2 Launchpad. The one with the annoying mini (not micro) USB connector.
I believe the MSP430G2231 came with the Launchpad board originally. I have several of them.
I'm not sure what you mean by which debugger (MSP-FET430UIF or MSP-FET?) This is the Launchpad that has the USB to serial chips on the board. In the past the CCS debugger worked without any special configuration or FET selection.
Hi Tim
Could you please give me the full picture of this launchpad (both sides)?
I'd like to find the link on TI.com of this launchpad
I found this one https://www.ti.com/tool/MSP-EXP430G2ET. But I think this board is different with the launchpad on your hand
Thanks
I agree my board looks different than the one in your link. EXP430G2ET must have been a later version compared to my EXP430G2.
Hi Tim
Thanks for your clearify!
I think it may be the driver issue because MSP-FETUIF
Please check this previouse E2E thread.
You can try the driver in this thread
Thanks
So install the driver
ti_msp430driver_setup_1.0.1.1-windows.zip | Windows Installer |
15108K |
and that should fix the issue?
Hi Tim
I don't have EXP430G2 on my hand
I think this driver should be OK based on the previouse E2E thread.
Could you please kindly help to try it?
Thanks!
I was able to update to driver 1.5.0.0 from the zip file. It did not install using "browse for drivers" saying the best driver was already installed. Instead I used "let me pick from a list" and the 1.5 driver was shown, but the 1.3 driver was default.
This seems to fix the problem in CCS, and I am able to debug.
However my code that uses the USB UART for serial still doesn't work. This code has been operating for many years, and suddenly stopped working, prompting me to run the CCS debugger to investigate revealing the driver issue. Now looking at the code: After initializing the UART, incoming characters are never received. The simple code below is modified to only blink the LED when a UART character is received, which never happens.
P2OUT = 0x00;
P2SEL = 0x00;
P2DIR = 0xFF;
__enable_interrupt();
TimerA_UART_init(); // Start Timer_A UART
for (;;)
{
// Wait for incoming character
__bis_SR_register(LPM0_bits);
// blink LED for every RX character
P1OUT |= 0x01; // set P1.0 (green LED)
_delay_cycles(60000); //50ms
P1OUT &= ~0x01; // clear P1.0 (green LED)
}
Well, the EXP430G2 was handy back in the day for the "Control of hardware bits over USB" use cases, but I guess it is past its useful life now. I replaced this device with a Raspberry Pi Pico and a bit of microPython code.
**Attention** This is a public forum