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.

Error while programming F2013 from ez430

Other Parts Discussed in Thread: MSP430F2013

I have an MSP430F2013 PC board with a relay.
I tried to program the MSP430F2013 using the ez430 USB kit. I disconnectedthe original little daughter board with F2013 and connected J1
pins(Vcc,GNd, SBWTCK, TDIO) to my board.

I got an error - Fatal error - "failed to initialize". Screenshot attached.

Should I connect a power supply to my F2013?

Regards,
-Hithesh



  • Hithesh said:

    I got an error - Fatal error - "failed to initialize". Screenshot attached.

    Should I connect a power supply to my F2013?

     Hi Hithesh, no power supply is required if power drawn from your board doesn't exceed few milliamp.

     Has your board reset circuitry with a capacitor to ground exceeding 2.2nF? If so and also 2.2nF is a threat, try remove it and test again. Best way is to insert a 1K resistor in series to capacitor to avoid his negative effect on programming and debug.

     Regards

     Roberto

  • Roberto, I have a 47K resistor connected just like the schematic of ez430F2013.

     

  •  Hi the 47K resistor is Ok but tis is not in series to capacitor, is between the capacitor and MSP pin node and VCC.

     So in series with capacitor must be in series with no other rail to node.

     Try remove capacitor to see if it work.

     Regards

  • In my ckt, both R21 and C1 are not present. 

    Schematic5314.Sheet1.pdf attached.

  •  Hi, how much long are the wires connecting the ez430 to your circuits? If you exceeded 20cm and wires are not one close to the other it cannot work.

     Regards

  • No, the length is about 2-3cm max.

  •  Hi, try these step:

     Power up the ez430 without target, then connect target (take care to first connect ground or leave connected).

      Disconnect power from board to ez430, this leave ez interface in a wrong state if powered from battery.

      Disconnect battery, then try program, if still persist try disconnect relay coil.

      I think one of these can result in a solution. With Ez430 I also experienced some troubles completely disappeared when I moved to launchpad.

     Regards

     Roberto

  • Roberto, I just got another board and tried it. It works.

    I do have a question about programming. I connected the board and selected "download and debug".

    Will the program exist even after I disconnect the ez430?

    Is this the way to program or should I select "download the application" from the IAR menu.

     

  •  To debug a program first must be loaded on flash, then thru JTAG or SBW breakpoint where set, register altered then execution started. If you remove (or leave there) from target when you power up it start program from reset vector.

     Download the application simply reload code to flash but still is there from preceding debug session.

     Regards

     Roberto

**Attention** This is a public forum