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.

CCS5.1 msp430f149 Unknown device

Other Parts Discussed in Thread: MSP430F149, MSP430G2231, MSP430F5521

Hi,

i get error, wenn i want to debug a msp430f149 board:

Error connecting to the target:
Unknown device

With CCS4.x every thing works fine. Have someone any idea?

Best regards,

Gang

  • Hi Gang,

    Do you have both CCS v5 and v4 installed?  Do you only get this error in v5?  Does v5 ask you to upgrade the firmware on the USB FET?

    If so, it could be the dll version.  Please see this wiki topic

    http://processors.wiki.ti.com/index.php/MSP_Debug_Stack

    Also I should confirm you are using a USB FET to connect?  Do you see any errors or warnings in the device manager?

    Please keep us informed.

    Best Regards,
    Lisa

  • Hi Lisa,

    thank you for your replay.

    Yes, both CCSV5 and CCSV4 are installed in my computer. I get this error only in V5 after upgrade the firmware from V4 to V5. I can downgrade the firmware of my FET back to V4 and there is no error any more after downgrade. The DLL i am used is from CCS, this should be correct. I use the msp430f149 device for a long time and it works fine, but it does not work with CCSV5.

    The device i am used is quite old, may be that is the reason?

    Best regards,

    Gang

  • Hi Gang,

    are you using the latest v5 release?  v5.1?  If so, that MSP should be supported.  On the wiki I sent, if you check your FET version (there are a couple different sets of instructions posted) and upgrade your FET, you should be able to use v5.1.  Version 3 of the msp430 dll is a recent release as part of CCS v5.1.

    Please try this and keep me informed.

    Best Regards,
    Lisa

  • Hi Lisa,

    the version i'm using is  5.1.0.09000. The FET i'm using is V1.4a. Also i've tried to replace msp430.dll with msp430v3.dll, but no effect.

    Btw. i made a test by using a lunchpad to program a msp430g2231 and to program a msp430f5521 board via FET in CCSV5.1, Both work fine.

    So the different between F149 and F5521/G2231 debug board is only the JTAG protocol, but in CCSV5.1 i find no possibility to select the protocol. I think it selects a protocol automatically.

    Best regards,

    Gang

  • Hi Gang,

    yes CCS automatically decides between JTAG and Spy-Bi-Wire.

    Are you having problems with all connections of the one type?  Is there anything else different about the board?  If the other MSPs are working then things are good with your dll and CCS v5.

     

    Please keep me informed,

    Best Regards,

    LIsa

  • Hi Lisa,

    the Lunchpad is come from TI, no changes are made.

    The msp430f149 has a 4W-JTAG and uses the standard implementation of TI. The msp430F5521 uses also 4W-JTAG but supportes SBW too.

    That means, if CCSV5.1 only works with SBW, then it can not connect to msp430f149, maybe that is the reason? By programming of msp430f5521 and msp430g2231 both need a long time for a very short code. If that is the reason, how can i put the CCS working in 4W-JTAG mode?

    Best regards,

    Gang

     

  • Hi Xue,

    I have successfully used both Spy-Bi-Wire and JTAG with CCSv5 and the new dll.  

    The long programming time is indicative of one of two things I suspect .... either the FET is upgrading itself causing the delay, or else it could indicate a poor connection to the board. 

    Is the F149 your own board?  Do you have access to try on another v5 installation?

    Best Regards,
    Lisa

     

  • Hi Lisa,

    you mean you have successfully used CCSv5 for msp430f149? If this is possible, i can test my board with JTAG too, but i don't know how can i set JTAG explicitly.

    The F149 board is my own design, but until now i can program my board with CCSv4 and mspgcc4 with the same FET without any problem. I get the problem only with CCSv5.

    I do not test another CCSv5 before, also in TI download site  the other version are: Not recommended for MSP430 users.

    Best regards,

    Gang

  • Hi Lisa,

    maybe i have to give you some more information about my develop environment:

    OS Windows 7 64 bit with SP1; CPU i7-2600

    For msp430 development i use mspgcc4 and eclipes. both CCSv5.1 and CCSv4.2 are installed for compatibility tests.

    Best regards,

    Gang

     

  • Hello Gang,

    CCS should automatically select between JTAG and Spy-Bi-Wire.   I have successfully used JTAG with CCSv5.1 and the new msp430 dll v3, not on your specific MSP, however.  That I am aware of, however, we have not so far had any issues with the older devices.  The F149 is still one of the more popular MSP430s. 

    I am wondering if it might be some interaction with your mspgcc4.  Have you switched to the new version of gcc for the msp430?  I believe v4 is no longer supported.

    There was apparently an issue with an x in specifying the MSP in some gcc toll versions.  Eg 14x instead of 149.

    For the F149 project in CCSv5.1 .... what code generation tool version is selected/used?  Have you tried getting the project onto the latest version?

    Please keep us informed.

    Best Regards,
    Lisa

  • Hi Lisa,

    in CCSv5.1 i can only find msp430x14x.cmd in link command file. I tried this file, but no effect.

    With CCSv5.1 i can successfuly debug F5521 and G2231 too except for f149. For the new msp430.dll(v3) the msp430f149 is a unknown device. I got this error with an older dll for F5521 device, in my opinion this is a problem in dll.

    I suppose, the reasons may be:

    1. my FET not works in JTAG but use SBW. Because F149 not support SBW, so the CCS get no answer from F149 device.

    2. In dll v3 the f149 is realy a unknown device?

    I hope, if someone can test this CCSv5.1 with F149.

    Best regards,

    Gang

  • Hi Xue,

    I will do what I can to see about our reproducing this.  As soon as I have any feedback I will let you know.

    Best Regards,
    Lisa

  • Hi Xue,

    I just successfully programmed a MSP430F149 with CCSv5.1 and msp430 dll v3.  

    So it really should work.  Is there anything special with your setup?  Have you tried an example?  Eg the blink LED example?  Does that work?

    Please keep us updated.

    Best Regards,
    Lisa

  • Hi Lisa,

    today i have tried another F149 board, i can program this board too. The different between the two boards is the first board, which i can program, has no other device to drive, and the second board, which i cannot with CCSv5.1 program, has connected to sensors and communication device, all devices need about 30mA at start up. If i use extern power supply, it works too(sorry i've not tested with external power supply before) . So my new question:

    In CCSv5.1 is made any chages concernning power supply, drive capabilities of FET or timing for start up? If this is true, can you tell me, what's the difference to CCSv4?

    What i cannot understand is the F5521 board has more devices as second F149, but it works without external power supply!

    Thank you very much,

    Gang

  • Hi Xue,

    it is hard to say why you see this, but it is possible may have nothing to do with CCS but with your connection.  When you connect to the USB FET using JTAG, the pins are different if you are using an external power supply or powering using the FET.  Were you using an external supply when using CCSv4? Did the board work connected exactly the same to CCSv4?  That is a bit odd.

    Best Regards,
    Lisa

     

  • Hi Lisa,

    yes, wenn i use external power supply, i have to set the jump to external power so as to let FET know. Normally we develop msp device use FET power supply, some times also use external power supply for dedicated tests. For F149 device, by which the CCSv5.1 not works, i always use FET power supply and it works with CCSv4.

    Compare to the older version, the v3 firmware has no power output after USB cable is pluged to FET. Is this a feature or my FET has problem?

    Best regards,

    Gang

  • Hi Xue,

    if the FET works to program the other MSPs I suspect it is likely fine.   A big difference with the v3 dll is that the FET will become a different class USB device.  I am not sure whether this should cause what you are seeing however. 

    Let me see if I can find out anything.  As soon as I have further feedback I will let you know.


    Best Regards,
    Lisa

  • Hi Lisa,

    now i know how can i work around and continue my job.

    Thank you again, that's very kind of you.

    Gang

  • Hi Xue,

    ok, happy to hear you are ok with the work around.  Should we figure any further thoughts I will post it here, but otherwise all the best with development.

    Best regards,

    Lisa