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.

MSP430G2452 could not find device or device not supported (error=4)

Other Parts Discussed in Thread: MSP430G2452

I tried to upload my second program to the MSP-430EXPG2 emulation board running MSP430G2452 micro-controller (the 553 one's pin broke). My first program was a distance sensor to LCD screen program that worked properly. after some trouble with the male headers i decided to replace them with the female headers and tried to run the same program again, it still worked. after this i tried to modify the code a little so connected it back to my computer (windows 8.1, no USB hub) where device manager detected it, and showed its working properly, after which i tried to upload the new program to the board but get the following error:-

tilib: MSP430_OpenDevice: Could not find device (or device not supported) (error = 4)

tilib: device initialization failed

here i decided to check if this problem was with my computer by first connecting a duplicate board, first with the 553 then with the same 452, worked both times. why am i getting this error, if my original code is still working on the board? 

  • Hello Pranay,

    This problem has nothing to do with the code itself but rather the state of the MSP-EXP430G2 Launchpad hardware, specifically with the RST and TST lines used for SBW communication. Previously uploaded code can still operate on a MSP430 that is correctly powered yet not be able to be properly reprogrammed due to an error of some type.

    So everything still works as expected on the second Launchpad, even the MSP430 devices in question? This would confirm that something is wrong with the hardware of the first Launchpad. Have you altered the state of any headers on the board? Can you confirm that the Launchpad enumerates as an Application UART virtual COM port on your computer?

    Regards,
    Ryan
  • Yeah everything is good on the second device. i had changed the male header for the female ones and the only problem i had in this process is that the internal wiring from the headers looked a little messed up, but if it was a short then the MSP430 wouldn't even start right?  as for the computer, yes, the launchpad enumerates as an application UART on COM2

  • Pranay Yadav said:
    but if it was a short then the MSP430 wouldn't even start right?

    If there was a short on the Vcc line then the MSP430 would not start, otherwise it will run the code that was last uploaded.  Since the Launchpad still enumerates as an application UART I think it is safe to assume that everything is working properly on the eZ-FET Lite side of the board.  Four lines are required to communicate and program the MSP430: Vcc, RST, TEST, and GND.  Vcc and GND are fine if the MSP430 is on and running code.  Look at the TEST and RST lines and make sure that they are not shorted.  Also confirm that their respective jumpers are connected and that C14 and R27 are properly populated.

    Regards,

    Ryan

**Attention** This is a public forum