SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on how to get your MSP JTAG programmer up and running.
By Guilherme
#75267
Hi,
I am new with the MSP430 stuff.

I have a eZ430-RF2500 kit and I was planning to use it as a Flash Emulation Tool. Just make sure, I connected the MSP430 that comes with the kit (MSP430F2274) and tried to debug using IAR 4.0 version. But appeared this error:

Wed Jun 17 20:49:53 2009: Fatal error: Failed to initialize.
Check if hardware connected.
Check if drivers are installed.
Try to restart the computer.
Tools using the parallel port are not supported on Windows Vista

Session aborted!
Wed Jun 17 20:49:58 2009: Failed to load debugee: C:\MSP430\Release\Exe\TC2009.txt


The code is this:

#include "msp430x22x4.h"
Code: Select all
int main( void )
{
  // Stop watchdog timer to prevent time out reset
  WDTCTL = WDTPW + WDTHOLD;
  P1DIR = 1;
  while (1);
  {
    
  }
  
}


OBS: The hardware was connected and installed and I am using Windows XP.

Please, I tried everything but didn't help. Anyone else knows why? :cry: :cry:
User avatar
By leon_heller
#75271
Everything works fine on my PC with XP. I use CrossWorks rather than IAR, though.

Leon
By Guilherme
#75272
but CrossWorks is Shareware :(

Tks anyway.

Anyone else?
User avatar
By leon_heller
#75274
CrossWorks isn't shareware! It's licensed in the same way as other software.

Leon
By Guilherme
#75346
I instaled CCE v3.1 and tried to flash a led. Here is the code:
Code: Select all
#include "msp430x22x4.h"

int main(void)
{
  WDTCTL = WDTPW + WDTHOLD;             // Stop watchdog timer
  P1DIR |= 0x01;                        // Set P1.0 to output direction

  for (;;)
  {
    volatile unsigned int i;            // volatile to prevent optimization

    P1OUT ^= 0x01;                      // Toggle P1.0 using exclusive-OR

    i = 10000;                          // SW Delay
    do i--;
    while (i != 0);
  }
}
I configured the correct device (the one of eZ430-RF2500) in the project properties and tried to debug. This error appeared:

"Could not initialize device interface"

This is the way I am connecting the kit. Is something missing?

[img]
http://www.state-machine.com/msp430/eZ430-RF2500.jpg
[/img]
By OldCow
#75361
This has noting to do with the code you wrote nor how the compiler was doing.

The problem is the debugger inside the PC could not communicate with the chip.

It could be caused by you telling the debugger to use the wrong "connection". (You should use "FET Debugger" and set up the FET Debugger to use the "Texas Instrument USB-IF"

It could also be caused by your PC not having the correct dll for the USB-IF.
By TheDirty
#75363
I had this same issue, but running on Vista. Is this a laptop? Apparently HP and Compaq laptops have a driver that conflicts with the programmers driver. Every time I want to program a chip I need to disable a device on my laptop. I think it's quick buttons or something. It always reinstalls itself after every reboot, though.
By Guilherme
#75416
Can I download the correct dll for USB-IF?
By OldCow
#75431
Usually the correct dll comes with the IAR CD or download. But Windows somehow may load the wrong one behind you back.

Another tip: if IAR says the firmware in your USB tool is not up-to-date and offers to update it, do not accept that offer!
By andyxz
#95789
I have same problem. please help.

I have a eZ430-RF2500 kit and I was planning to use it as a Flash Emulation Tool. Just make sure, I connected the MSP430 that comes with the kit (MSP430F2274) and tried to debug using IAR 4.0 version. But appeared this error:

Wed Jun 17 20:49:53 2009: Fatal error: Failed to initialize.
Check if hardware connected.
Check if drivers are installed.
Try to restart the computer.
Tools using the parallel port are not supported on Windows Vista

Session aborted!
Wed Jun 17 20:49:58 2009: Failed to load debugee: C:\MSP430\Release\Exe\TC2009.txt