5 years, 2 months ago.

Exporting mbed project to IAR

I just purchased a EA LPC4088 board as an upgrade for the NXP LPC1768 boards I have been using.

The first test project, mbed_blinky, works fine when using the mbed online compiler.

However, after exporting the mbed project to IAR Embedded Workbench, EW can't read the .eww workspace file and generates error messages like:

LOAD: Configuration 'Debug' in the project 'LCP4088-led_blinky' contains broken options for tool 'General': The format of this file is not supported by this version of the workbench. It appears to have been written by a newer version of the workbench.

It seems the exporting tool from mbed assumes a newer version of IAR EW (I am using 6.5). What version is assumed by mbed? Is there any way I can make the .eww file compatible with 6.5?

Also, I have created a new .eww Workspace file from scratch, including all .h and .o files from mbed for the LPC4088 platform. It compiles and builds without errors, but the .bin file does not blink the leds after loading. (The IAR compiler works fine with the LPC1768 board, though).

Has anybody actually tested the LPC4088 export to IAR?

BTW: I have also tried export to Keil (evaluation version). This seems OK, leds are blinking.

Question relating to:

The mbed-enabled LPC4088 QuickStart Board from Embedded Artists is a easy to use ARM Cortex-M4 rapid prototyping board in a standard through hole DIP package (44-pin), targeted at high-performance as …

I recall some templates were updated to version 7 and above. I don't have this board on my desk, but will ask around

posted by Martin Kojtal 19 Mar 2015

Hi, when you converted the project to 6.50 did you also override the default linkerfile with the one that was provided by the exporter?

posted by Gustav Wiklander 19 Mar 2015

@Gustav: I've just tried both settings, i.e:

$PROJ_DIR$\mbed\TARGET_LPC4088\TOOLCHAIN_IAR\LPC4088.icf

and

$TOOLKIT_DIR$\config\linker\NXP\LPC4088.icf

Both .icf files build and link OK, but still no blinking leds.

posted by Rene Kellenbach 19 Mar 2015

If you also added the cmain.o file to your project. You need the option - -skip_dynamic_initialization (no space) under linker->Extra Options. This is set in the exported project. If you did not include cmain.o you have to remove that extra option if it is present. I can not test if LPC4088 does not work with IAR because I don't have the board. I have however ordered it so if your problem continues I can hopefully help you solve it next week.

posted by Gustav Wiklander 19 Mar 2015

cmain.o wasn't included in my project, nor the - -skip_dynamic_initialization as a linker option. I have just added both, but still no blinking leds.

I can not test if LPC4088 does not work with IAR because I don't have the board. I have however ordered it so if your problem continues I can hopefully help you solve it next week.

Thanks a lot, Gustav!!

posted by Rene Kellenbach 19 Mar 2015

@Martin: I have tried an evaluation version of IAR EW 7, and this seems to work fine: led's are blinking now!

posted by Rene Kellenbach 20 Mar 2015
Be the first to answer this question.