Knowledge base/Frequently Asked Questions/Tools FAQ

Port IAR project from Gecko to Tiny Gecko

Rasmus Larsen
posted this on July 19, 2011 16:17

Q:

I have an IAR software project that I have written for the an EFM32 Gecko MCU. What do I need to do to run this on a Tiny Gecko?

A: 

As long as the features you are using are available also on the Tiny Gecko device, porting is easy. First you must ensure that your version of IAR Embedded Workbench supports the EFM32TG devices (version 6.20 or later). To modify an IAR Gecko project to run on a Tiny Gecko, you must do the following:

1) In project options. Change the Target Device under General Options:

target.jpg

2) Under the C/C++ Compiler section, in the Preprocessor tab, change the Defined symbols with the new device name:

symbol.jpg

If the project uses any kit specific includes, the Additional Include Directories paths must also be updated.

3) Under the Linker section, change Linker configuration file:

linker.jpg

4) In the files included in the Project under the CMSIS folder, remove the startup_efm32.s (Includes Gecko specific interrupt vectors) and replace it with startup_efm32tg.s (includes Tiny Gecko specific interrupt vectors). The startup files are found under the Simplicity Studio work folder in the following path:

CMSIS\CM3\DeviceSupport\EnergyMicro\EFM32\startup\iar

startup.jpg

 

 
Topic is closed for comments