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.

MSP430: Error connecting to the target: No MSP430 device was found on USB FET 1

Other Parts Discussed in Thread: MSP430F5438, MSP430F5436, MSP430F5438A

I have an MSP430F5438 Chip on a MSP-EXP430F5438 board.

Using a MSP430 USB-Debug-Interface MSP-FET430UIF

I am using  CCE Version: 4.1.1.00014

I check the configuration in my device manager. I can see that the computer recognizes both the FET and the EXP board in the device manager.

I am trying to run a hello world application but I keep getting stuck on the same point.

 

I have downloaded a small very simple piece of code to try out my board. the code is the following:

-------------------------------------------------------------------------

#include <msp430f5438.h>
#include <stdio.h>

void main (void)
{       
// Stop watch dog
  WDTCTL = WDTPW + WDTHOLD;                 // Stop WDT

// Global data initialization
  a = 0;

  b = 1;
  printf ("Number a=",a);
 _NOP();
}

-------------------------------------------------------------------------

I set the power switch to USB. Select MSP430F5438 as target device on the .ccxml file and the .cmd file.

I click on Project > Build Active Project, and i get the "build complete" message with no errors or warnings. 

When i press the debug button, I get an error message saying "Error connecting to the target: No MSP430 device was found on USB FET 1".

I seriously don't know what's wrong with this. I even got a new board, FET and silicon chip, and still got the same problem. Uninstalled and Re-installed the software (CCE v4) i change the pin configuration from JP5 to JP4, I power cycle the computer, the board, the IDE, but i keep getting the same error over and over again. I really don't know what to do and I'm running out of ideas. Any help is greatly appreciated.

  • I don't have the EXP board, only the FET and the naked TS430PZ5x100 board, so I can only guess.

    In the past I discovered often that our previously used MSP1611 processors weren't found by the parallel port programmer. After one or more power cycles, things worked.

    I had this kind of problems a few times (but far from that often) with the 5428 and the USB FET too. Also I discovered that sometimes the programming software loses connection to the FET, so I have to restart it, and twice or so times I had to remove the FET and reconnect it to make things work again.

    But this was only a small fraction of all access tries. So in your case the reason must be something different. Are you sure you connected everything properly? I had some cases where the connectors were twisted, including the power connector of a HD (really!). That the board shows up in hardware manager does not mean that the software can acces the processor through the FET.

    Also, I do not know the required wiring between PC, board and FET. MAybe you need to disconnect the board from the PC when programming with the FET? Maybe you need to set or remove a jumper so the FET can program the MSP. Read the fine-print in the documentation carefully again.

    And, as you said you got a new silicon chip, I guess the processor isn't soldered to the board. So re-check the orientation. For some unknown reason the chips may have more than one 'dot' that seems to indicate the Pin 1 position, but in fact it is the smaller, less obvious, but deeper carved one that is to be used. I remember inserting the processor with wrong orientation too when I first used my board. If you did too, it will not have done any harm in most cases (these little thingies are very robust).

    Good luck!

     

  • Hi chris,

    pls have a look at the MSP-EXP430F5438 users manual again (http://focus.ti.com/lit/ug/slau263d/slau263d.pdf). Refer to page 18 for the SYS PWR jumper settings and place them accordingly (also refer to page 17 for details).

    In addition, I would recommend to test if the board is working when powered by the MSP-FET430UIF (and not by USB).

    Kind regards
    aBUGSworstnightmare

  • I have set up tests with the board power switch set to battery, FET, and USB, in all permutations, but the same problem persists.

    I will review the configuration of the pins today and will update what happens

  • Chris,

    I have heard of a couple of other instances where this error happens with CCS4 and MSP-EXP430F5438 Experimenter boards Rev 0-03. Unfortunately I don't have further details on root cause or when it will be addressed. If you click on Retry when you first get the error, it should connect after a few retries. It could take anywhere from 1-10 clicks on Retry before it connects. If you do this, does it eventually connect?

    Another suggestion is to disconnect Jumper 2 during programming. Jumper JP1 provides power to the MSP430F5438, JP2 provides power to the entire MSP-EXP430F5438 board. Disconnecting Jumper 2 will reduce the current during programming and could resolve the errors during programming.

  • Had a similar problem when I started> I am also using the fet USB debugger. You need to configure the debugger. You should have a setup menu for this The fet  is set for USB in your IDE, Your target is set for the correct MCU and the Debugger is set for either SpyByWire or JTAG. You also may have some jumpers on the board that to setup.  There were 5 jumpers that have to be set on the board I am using.  I am using a different IDE than you are but had the same problem with a similsr program but I was flashing an LED. I received the same error of no target device found The fet debugger is set for a Default communication. Mine was set for SpyByWire. I had the board set for JTAG so hence I received the same error. Once I set them both the same it worked.

     

    Hope this helps

    t

  • Hello everyone, thanks for yalls input.

    I managed to get my simple code working, the message "no device found" is gone =D thanks all

    My configuration is the following:

    Jumper configuration:

    JP1, JP3, JP5, JP4(pins 1-4) connected

    Power Switch on USB.

    When i run the debugger, it shows the error "no device found" but when i click on "retry" several times, it works.

    I do get an warning saying "CPU is OFF and further debugging is not possible". Any ideas what that means?

    Thanks for the help so far.

  • Ok I changed my configuration a little, and I got a working program!!!!!! =D

    My configuration is the following:

    Jumper configuration:

    JP1, JP2, JP5, JP4(pins 1-4) connected

    Power Switch on USB.

    When i run the debugger, it shows the error "no device found" but when i click on "retry" several times, it works after a few tries (still bothers me a bit but since it works now, i cant complain).

    I press the run button, the board does what i tell it to do! I even have a small blinking LED program running for show off purposes.

    Thank you all for your suggestions and help, really really appreciate it.

    Chris C

  • Hello everybody.

    I am facing the exact same problem with msp430-gdbproxy:

    debug: MSP430_Initialize()
    debug: MSP430_Configure()
    debug: MSP430_VCC(3000)
    debug: MSP430_Identify()
    error:     msp430: Unknown device (5)
    debug: MSP430_VCC(0)
    debug: MSP430_VCC(3000)
    debug: MSP430_Reset(ALL_RESETS)
    debug: MSP430_Close()
    Assertion failed: !msp430_status.is_open, file target_msp430.c, line 745

    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.

    I am using the TI MSP-TS430pz5x100 card in conjunction with the MSP430F5438 microcontroller. I am using the MSP-FET430UIF as a debugging interface.

    The jumpers are as follows(default, out-of-the-box configuration) :

    JP1 - connected

    JP2- connected

    JP3 - pins 1 and 2 connected

    JP5 to JP10 - pins 2 and 3 connected , JTAG Mode

    There is no fault in mspgcc, something's not working with the msp430-gdbproxy. I know msp430f5438 is supported as I can compile my blink application without any errors for this microcontroller...

    Any ideas about this ?

     

    Thanks in advance.

    *UPDATE*

    I am calling msp430-gdbproxy as follows :

    msp430-gdbproxy --port=3333 msp430 , Throws error : msp430: Could not find device (or device not supported)

    or

    msp430-gdbproxy --port=3333 msp430 TIUSB,  Throws error : msp430: Unknown device (5)

  • I honestly have no idea what gdproxy is, this is the first time i have heard of it.

    Im not sure when is your failure happening. Which IDE are you using?

  • I'm using Eclipse IDE and mspgcc as a compiler. Msp430-gdbproxy is a proxy tunneling jtag commands to native gdb-compliant instructions.

  • gdproxy is, as the name implies, a proxy program. It forwards general debugging requests received through the given port to the low-level library that makes the JTAG handling.

    With gdproxy, the general linux debugger gd (GNU Debug) can debug the MSP, provided that there is a firmware file in the standardized a.out or .elf format.
    The GCC derivate mspgcc produces the proper files.

    Unfortunately I have no idea what's wrong, since I do use mspgcc butr don't use gd and therefore do not use gdproxy.
    The mspgcc mailing list could be a better place to look. Also scan the lists archieve as this is a topic I've noticed more than once in this list.

  • Thanks Jens-Michael!

    I've spent half of day today in searching,to no avail...

    I'll try to repost there, maybe i'll have better luck :(

  • We have been having the same problem with having to retry a dozen or so times over here with the MSP430F5436.  We are using the processor on a custom board.

     

    Interestingly enough, the engineers with Parallel Port FET's do not experience the issue. 

     

    -Josh

     

     

  • Apparently it's not supported . How am I supposed to conduct research  like this? It's non-profit :(

    Guess I'll stick to Atmel then. At least theirs is free all the way..

  • Hi

    I am using MSP-FET430UIF debugger, MSP-TS430PZ5X100 target device with MSP430F5438A chip on it and having the same problem with Chris. I tried every possible solutions mentioned above but i keep getting the error "No MSP430 device was found on USB FET 1". Clicking on the retry button on and on is not working.

    USB FET  is recognized by  the PC

    I'm using CCS Version: 4.0.2.01003

    I selected  MSP430F5438A as target device on the .ccxml file and the .cmd file

    I am not using external clock source for now

    My jumper configuration is the following:

    jp3 close 1-2

    jp1 and jp2 connected

    jp5 to jp10 close 2-3 to debug in JTAG mode

    As far as i see there is only one thing left if it's the problem ; configuring the debugger, where is the setup menu for this, I couldn't find it.

    Thanks for any help.

    Emin

  • Hi again,

    The problem is solved. It was my mistake. I misplaced the chip because of the triangle mark on Yamaichi socket. I thought the "1" mark mentioned on page 20 in SLAU278H is that mark on the socket. The actual  "1" mark is on the PCB.

    Regards

    Emin

  • The original version of the socket didn't have this mark. So nobody cared for socket orientation on the PCB :(
    I made the very same mistake on the first run. Luckily, the MSP is a tough guy.

**Attention** This is a public forum