Olimex Support Forum

Microcontrollers => MSP430 => Topic started by: jimmeep on February 21, 2013, 09:32:52 pm

Title: IAR workbench and msp430-jtag-rf
Post by: jimmeep on February 21, 2013, 09:32:52 pm
Hi,
I just upgraded my IAR Workbench from 5.40.x to 5.51.5 and now the MSP430-JTAG-RF dongle does not work at all.  IAR comes back with and error "Communication error. Check if hardware is connected. Check if debug protocol (SBW or 4-wire) is correct."

It worked fine before upgrading to IAR's newest version!!

Please help.
Thanks,
-Jim
Title: Re: IAR workbench and msp430-jtag-rf
Post by: LubOlimex on February 22, 2013, 08:41:24 am
Hey Jim,

Did you replace the .dll files in in IAR_EW_INSTALL_PATH\430\bin? The latest drivers for MSP430-JTAG-RF are these: https://www.olimex.com/Products/MSP430/JTAG/_resources/OLIMEX-MSP430-DLL-drivers-1.042.zip (https://www.olimex.com/Products/MSP430/JTAG/_resources/OLIMEX-MSP430-DLL-drivers-1.042.zip).

For more info please check this document: https://www.olimex.com/Products/MSP430/JTAG/_resources/How-to-install-and-use-Olimex-MSP430-JTAG.pdf (https://www.olimex.com/Products/MSP430/JTAG/_resources/How-to-install-and-use-Olimex-MSP430-JTAG.pdf)

Best regards,
Lub/OLIMEX
Title: Re: IAR workbench and msp430-jtag-rf
Post by: jimmeep on February 25, 2013, 05:39:28 pm
I'm looking at the DLL's in said download and they're dated 07/17/2011.  The DLL's in the IAR..\430\bin are dated 10/18/2012.  Why would I want to overwrite these?

The latest tool of IAR DOES NOT WORK with Olimex.  Bummer, since it is a very good product and wished it workded.  Not sure what else to try.  Has anyone gotten the latest IAR Workbench IDE version 5.51.5; common components 6.4.7.2442.

Has Olimex tried this version?

Thanks,
-Jim
Title: Re: IAR workbench and msp430-jtag-rf
Post by: LubOlimex on February 26, 2013, 09:32:27 am
Hey Jim,

The most important dll to change is the olimex.dll (which is the configuration for Olimex programmers). You can backup the newer one in case something goes wrong!

The dates are not very relevant since the latest drivers (2.x.x.x) support only JTAG-TINY-V2 and ISO-MK2 (the firmware is too big to fit JTAG-TINY-V1 or ISO1). So depending on the programmer you have to use 1.4.2.0 (for older programmers) or 2.0.0.7 for JTAG-TINY-V2 and ISO-MK2.

Best regards,
Lub/OLIMEX
Title: Re: IAR workbench and msp430-jtag-rf
Post by: jimmeep on February 28, 2013, 12:19:09 am
I just got an email from IAR telling me to upgrade to v1.039.  This is really upsetting.

Have you actually tried to use YOUR own tool on IAR's newest version?  I don't have time to debug your unit.  I'm going to use sonething that works and suggest everyone to also.

Nice product if it worked!

Done - over and out!
Title: Re: IAR workbench and msp430-jtag-rf
Post by: LubOlimex on March 05, 2013, 04:42:09 pm
Hey jimmeep

Really sorry that you have given up disappointed.

I could try more things over here if you have provided me with more details. For instance which processor you tried to debug. I tried the latest IAR 5.51 with MSP430-JTAG-RF and MSP430F2274 and the combo worked more than fine here having swapped olimex.dll with olimexv1.dll in 430\bin folder.

We have three MSP430 debuggers (MSP430-JTAG-ISO, MSP430-JTAG-TINY, MSP430-JTAG-RF) whose design does not allow bigger firmware (e.g. adding support for new MSP430 chips). They have limited memory and there is no way we can provide further updates for those three devices. We really wish that we could do more but these devices were designed more than 8 years ago - at the time they were released it seemed like they have enough memory that would last forever. For those three devices the latest driver version is 1.0.4.2. This driver is part of IAR EW for MSP 5.51 and it is located in IAR_INSTALL_FOLDER\430\bin under the name olimexv1.dll.

We have two MSP430 debuggers with much improved design - MSP430-JTAG-TINY-V2 and MSP430-JTAG-ISO-MK2 which are relatively new products and have plenty of space for adding support of new MSP430 chips. They use drivers version 2.0.0.x (the latest one at the time of writing is 2.0.0.7), these drivers work only for these two newer products. This driver is also part of IAR EW for MSP 5.51 and it is located in IAR_INSTALL_FOLDER\430\bin under the name olimex.dll.

Since the default .dll file loaded in IAR EW for MSP430 is olimex.dll (though it is 2.0.0.5 and not the latest 2.0.0.7) the three older devices (MSP430-JTAG-ISO, MSP430-JTAG-TINY, MSP430-JTAG-RF) would not work out-of-the-box. The user has to rename olimexv1.dll to olimex.dll. A good idea would be to back-up both files beforehand. Another good idea for IAR users that are using ISO-MK2 or TINY-V2 (the newer devices) is to visit this link and update olimex.dll with the latest version: https://www.olimex.com/Products/MSP430/JTAG/MSP430-JTAG-ISO-MK2/resources/OLIMEX_MSP430-DLL_drivers.zip. The updated .dll is located in folder named "IDE_dlls".

Best regards,
Lub/OLIMEX
Title: Re: IAR workbench and msp430-jtag-rf
Post by: jimmeep on March 07, 2013, 01:17:27 am
Hi,

I'm back to eat crow. 

Even though I was hesitant to copy old DLL's, ...I copied from v1.042 the Five DLL's form the app note:
... FTD2XX.dll, HIL.dll, MSP430.dll, olimex.dll, and SiUSBXp.dll to IAR MSP430 installed directory\430\bin..."

I'm using the MSP430F5438A.  Are you implying from your last post this micro is not supported due to "bigger firmware"?  After downloading the v1.042 DLL's the MSP-JTAG-RF seems to work okay.

Sorry for bad press.  Musta been a bad day. 
I still like the tool!
Thanks,
-Jim
Title: Re: IAR workbench and msp430-jtag-rf
Post by: LubOlimex on March 07, 2013, 01:21:29 pm
Hello Jim,

No worries, glad you managed to get your setup going!

QuoteI'm using the MSP430F5438A. Are you implying from your last post this micro is not supported due to "bigger firmware"?


MSP430F5438A is supported by the drivers since version 1.0.3.9. It is supported in 1.0.4.2 also. Drivers 1.0.4.2 are the last revision of drivers that works with MSP430-JTAG-ISO-MK2, MSP430-JTAG-TINY-V2 and MSP430-JTAG-RF.

I meant that newer TI processors that are released after September 2012 would lack support in older drivers due to physical lack of space on the older debuggers. Only MSP430-JTAG-ISO-MK2 and MSP430-JTAG-TINY-V2 would have their firmware updated (which is now version 2.0.0.7).

Best regards,
Lub/OLIMEX
Title: Re: IAR workbench and msp430-jtag-rf
Post by: kenyee on March 07, 2013, 05:44:51 pm
Quick suggestion on lack of space...maybe add an "A" and "B" version of drivers...one for pre-2012 devices, one for post-2012 devices.

Headache for you guys, but keeps older customers happy...
Title: Re: IAR workbench and msp430-jtag-rf
Post by: jimmeep on March 11, 2013, 10:38:32 pm
Hi Lub/OLIMEX,

I got the project working with the MSP430F5438A with Olimex, but now I switch to another project using the MSP430G2553 micro and see that my TI MSP-FEX430UIF does not work.  I switch the DLL's back to the original from IAR and the TI FET works okay. 

I then fall back to the Olimex DLL's (same as I got working on the MSP430F5428A) and the Olimex does not work with the MSP430G2553.  This flavor MSP430 is a Spy-Bi-Wire(SPW) device.  Has the Olimex MSP430-JTAG-RF module been blessed for this micro?

Thanks,
-Jim
Title: Re: IAR workbench and msp430-jtag-rf
Post by: kenyee on March 13, 2013, 03:20:05 pm
Quote from: jimmeep on March 11, 2013, 10:38:32 pm
I then fall back to the Olimex DLL's (same as I got working on the MSP430F5428A) and the Olimex does not work with the MSP430G2553.  This flavor MSP430 is a Spy-Bi-Wire(SPW) device.  Has the Olimex MSP430-JTAG-RF module been blessed for this micro?


How are you connecting to the G2553 in SBW mode?
Look at the thread I put up below about the incorrect Olimex pinout of the ISO-JTAG in SBW mode...if you're using a Tag-Connect cable, you'll be bit...
Title: Re: IAR workbench and msp430-jtag-rf
Post by: LubOlimex on March 19, 2013, 04:00:49 pm
Hey Jim,

Got some bad news for you. MSP430G2553 is supported in drivers version 1.0.4.2, but as we already know this set of drivers crashes CCS 5.x after initial program. So basically you can program MSP430G2553 with JTAG-RF under IAR for MSP Embedded Workbench IDE, or Olimex programmer or any other IDE/programmer that supports msp430.dll using 1.0.4.2 dlls but you can't do that under CCS 5.x (CCS 4.x should work fine though).

Best regards,
Lub/OLIMEX