EmbeddedRelated.com
Forums
Memfault Beyond the Launch

IAR FET Problem -- works in v2, doesn't in v3

Started by aekalman March 16, 2004
Hi All.

I'm kinda stumped on this one -- I have both IAR MSP430 EW v2.3
(compiler v1.26A) and v3.2 (compiler v2.21B).

Previously, I was able to run C-SPY with the FET in both versions of
EW.

Now, I can run it in v2 but not in v3 -- I get 

"FATAL ERROR Failed to initialize device. Session aborted!"

and 

"A fatal error has occured. The debugger will terminate."

windows in v3 when I launch C-SPY and the FET is selected. 

Thinking that this might be a dll problem, I uninstalled and
re-installed EW 430 v3, to no avail.

The FET works in CrossWorks 430 just fine, too.

Any suggestions?

Thanks,

--Andrew


Beginning Microcontrollers with the MSP430

What have you installed since it used to work?

Ray

-----Original Message-----
From: aekalman [mailto:aek@aek@...]
Sent: Tuesday, 16 March 2004 4:10 PM
To: msp430@msp4...
Subject: [msp430] IAR FET Problem -- works in v2, doesn't in v3


Hi All.

I'm kinda stumped on this one -- I have both IAR MSP430 EW v2.3
(compiler v1.26A) and v3.2 (compiler v2.21B).

Previously, I was able to run C-SPY with the FET in both versions of
EW.

Now, I can run it in v2 but not in v3 -- I get 

"FATAL ERROR Failed to initialize device. Session aborted!"

and 

"A fatal error has occured. The debugger will terminate."

windows in v3 when I launch C-SPY and the FET is selected. 

Thinking that this might be a dll problem, I uninstalled and
re-installed EW 430 v3, to no avail.

The FET works in CrossWorks 430 just fine, too.

Any suggestions?

Thanks,

--Andrew



.

 
Yahoo! Groups Links



 


--- In msp430@msp4..., "Raymond Keefe" <ray@b...> wrote:
> What have you installed since it used to work?
> 
IAR AVR, HT430 are the ones that come to mind ...


Hi,

I had a problem with the AVR JTAG ICE under CSPY in Windows XP but it was OK
in Windows 2000/98SE.  It turned out to be AVR Studio (freeware from Atmel)
that had hijacked a matching DLL name for V4.xx in XP.  When I unistalled
that then it all worked again.  I then went back to V3.5x and it still
worked.  Eventually AVR Studio was fixed and it still works even with V4.08.

I haven't had a similar issue with the MSP430 but I am using Quadravox.  If
possible, try uninstalling the 2 new applications and see if that fixes it.
IAR would also be worth asking.  I have had good support from them in
general.

I assume HT430 is from HiTech?

Ray

ray@b...> wrote:
> What have you installed since it used to work?
>
IAR AVR, HT430 are the ones that come to mind ...


Andrew,

I believe the DLLs for FET driving are different between v2 and v3.
Make sure that you don't have screwed DLLs or, more importantly,
DriverX.

We cut ourselves loose from the TI DLL to drive the FET, but it seems
that we now need to go back and support that DLL as there are new
developments on the horizon that require it.  :-(

-- Paul.

> -----Original Message-----
> From: aekalman [mailto:aek@aek@...]
> Sent: 16 March 2004 05:10
> To: msp430@msp4...
> Subject: [msp430] IAR FET Problem -- works in v2, doesn't in v3
> 
> 
> Hi All.
> 
> I'm kinda stumped on this one -- I have both IAR MSP430 EW v2.3
> (compiler v1.26A) and v3.2 (compiler v2.21B).
> 
> Previously, I was able to run C-SPY with the FET in both versions of
> EW.
> 
> Now, I can run it in v2 but not in v3 -- I get 
> 
> "FATAL ERROR Failed to initialize device. Session aborted!"
> 
> and 
> 
> "A fatal error has occured. The debugger will terminate."
> 
> windows in v3 when I launch C-SPY and the FET is selected. 
> 
> Thinking that this might be a dll problem, I uninstalled and
> re-installed EW 430 v3, to no avail.
> 
> The FET works in CrossWorks 430 just fine, too.
> 
> Any suggestions?
> 
> Thanks,
> 
> --Andrew
> 
> 
> 
> .
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 

Again, figure out the MSP DLL and ensure that they're all disjoint and
not loaded from the PATH environment variable.  I'm sure every vendor
ships different MSP430 DLLs that come from TI.  And the DLLs aren't
always reliable.

Unfortunately, I can't help you further as it will always work in
CrossStudio because we wrote that software, not TI.  We found the TI s/w
to be slightly unreliable.

Regards,

-- Paul.

> -----Original Message-----
> From: aekalman [mailto:aek@aek@...]
> Sent: 16 March 2004 06:38
> To: msp430@msp4...
> Subject: [msp430] Re: IAR FET Problem -- works in v2, doesn't in v3
> 
> 
> --- In msp430@msp4..., "Raymond Keefe" <ray@b...> wrote:
> > What have you installed since it used to work?
> > 
> IAR AVR, HT430 are the ones that come to mind ...
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor 
> ---------------------~-->
> Upgrade to 128-bit SSL Security!
> http://us.click.yahoo.com/LPJzrA/yjVHAA/TtwFAA/CFFolB/TM
> --------------------------
> -------~->
> 
> .
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 

Andrew,

> Now, I can run it in v2 but not in v3 -- I get 
> 
> "FATAL ERROR Failed to initialize device. Session aborted!"
> and "A fatal error has occured. The debugger will terminate."
> windows in v3 when I launch C-SPY and the FET is selected. 
 
Neither am I an expert at MSP nor DLL stuff.But,I had the EXACT SAME 
problem couple weeks ago when i started with my first MSP, and 
posted the question the group.[ Ref: Date:  Thu Mar 4, 
2004,Subject:fatal error : MSPFET-120].I was running kickstart-v1.2 
and then installed v2 after uninstalling the first one  and it never 
worked.

> Thinking that this might be a dll problem, I
uninstalled and
> re-installed EW 430 v3, to no avail.
> 

I too uninstalled all versions of IAR still in vein.But then I WENT 
TO THE SYSTEM REGISTRY and DELETED all IAR related stuff.After which 
my system is perfectly up and running.

Actully I think the uninstallation programs leave some traces behind 
in the registry and they mess up things when we have more than one 
versions ??? 

I would be glad to know more about this from the experts.

Thanks,
OM.


Thanks to all who replied -- I haven't fixed it yet, but will report
back. Right now I'm comparing a working v3 QuickStart installation on
my laptop to the busted v3 install on a workstation.

I suspect it's something subtle, related to paths, but I dunno yet ...

--Andrew


--- In msp430@msp4..., "aekalman" <aek@p...> wrote:
OK, I fixed it. Here's a chronological account of what I did:

1) Compared to a EW v3 KickStart installation. Noticed that
stack.dll's date was way earlier than the KickStart's stack.dll --
copied it over. Rebooted. Same problem.

2) Uninstalled (i.e ran the specific uninstaller for) all three MSP430
EW v3 versions I had on my PC (there have been a couple of upgrades).
Re-installed the latest in the same (C:\IAR\EW32) directory. Rebooted.
Same problem.

3) Uninstalled the latest. Installed the latest in the new / current
default directory (C:\Program Files\IAR Systems\Embedded Workbench
3.2\) in the hope that by placing it in a new "home directory", any
path-related problems might go away. Rebooted. Same problem.

4) Noticed a "Latest updates" link on the installer CD-ROM -- had
instructions to install two updated files, icc430.exe and driverx.vxd.
Followed the instructions. Rebooted. Problem solved.

All of this was on a Win98 machine. This is the first time I ever
followed the "Latest updates" link on an IAR installer CD-ROM
(hadn't
noticed it previously). So, I'm not sure why it worked previously, but
now it needed the driverx.vxd update. Regardless, I'm happy that it's
working now.

--Andrew

P.S. Early on I went into the registry to look for IAR strings, but
there were so many I decided not to mess with them.



Memfault Beyond the Launch