# Simplicity Studio and GCC

**URL:** <https://forums.freertos.org/t/simplicity-studio-and-gcc/5864>\
**Category:** Kernel\
**Created:** [March 29, 2016, 10:55am UTC](https://forums.freertos.org/t/simplicity-studio-and-gcc/5864 "2016-03-29T10:55:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 29, 2016, 10:55am UTC](https://forums.freertos.org/t/simplicity-studio-and-gcc/5864/1 "2016-03-29T10:55:50Z")

</div>

**[ndunello](https://sourceforge.net/u/ndunello/)** wrote on [Tuesday, March 29, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/ff58a2ae/#58ce):

I downloaded the file 160318\_FreeRTOS\_SiLabs.zip and imported the project in Simplicity Studio IDE v3.  
First I had to correct the path of FREERTOS\_ROOT variable in project settings.

When I build the project I get the following error:  
Field ‘em23VregFullEn’ could not be resolved in /RTOSDemo/SiLabs\_Source/emlib/em\_emu.c line 756 Semantic Error  
‘EMU\_EM23Init\_TypeDef’ has no member named 'em23VregFullEn in /RTOSDemo/SiLabs\_Source/emlibem\_emu.c line 756 C/C++ Problem

How to fix it?

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [March 29, 2016, 11:19am UTC](https://forums.freertos.org/t/simplicity-studio-and-gcc/5864/2 "2016-03-29T11:19:09Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, March 29, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/ff58a2ae/#0306):

> First I had to correct the path of FREERTOS\_ROOT variable in project settings.

That should not be necessary - the variable is set to “${PROJECT\_LOC}......”, which is a path relative to the project directory, so unless you changed the directory structure, or didn’t follow the import instructions provided on the website exactly, it should just work.

What did you need to change it to?

> When I build the project I get the following error:  
> Field ‘em23VregFullEn’ could not be resolved in /RTOSDemo/SiLabs\_Source/emlib/em\_emu.c line 756 Semantic Error  
> ‘EMU\_EM23Init\_TypeDef’ has no member named 'em23VregFullEn in /RTOSDemo/SiLabs\_Source/emlibem\_emu.c line 756 C/C++ Problem

What happens if you right click on the ‘EMU\_EM23Init\_TypeDef’ type in the source code (the location of which is part of the error message), then select “Open Declaration” from the pop up menu. In my set up I’m taken to the following definition:

```auto
typedef struct
{
  bool em23VregFullEn;/**< Enable full VREG drive strength in EM2/3 */
} EMU_EM23Init_TypeDef;

```

which, as you see, does have a em23VregFullEn variable.

Note, the header file this extract is taken from is part of the Simplicity studio directory structure, it is not part of the FreeRTOS code. Have you installed support for the target you are trying to use in Simplicity Studio (either Giant or Pearl Gecko, I don’t think you said which you were using). If not, that might be your problem.

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [March 29, 2016, 11:27am UTC](https://forums.freertos.org/t/simplicity-studio-and-gcc/5864/3 "2016-03-29T11:27:21Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, March 29, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/ff58a2ae/#0306/2fec):

I have just updated the build instructions to include the following as  
the first step:

“Ensure you have Giant and/or Pearl Gecko starter kit support included  
in your Simplicity Studio installation, otherwise the project will fail  
to build. Support for additional EFM32 devices and starter kits can be  
installed using the Simplicity Studio menus.”

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 29, 2016, 12:54pm UTC](https://forums.freertos.org/t/simplicity-studio-and-gcc/5864/4 "2016-03-29T12:54:45Z")

</div>

**[ndunello](https://sourceforge.net/u/ndunello/)** wrote on [Tuesday, March 29, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/ff58a2ae/#1867):

Unfortunately I have the EFM32 STK3600 board.

I unpacked the 160318\_FreeRTOS\_SiLabs.zip file in the _“C:\Users\Antonello\SimplicityStudio”_.  
Attached images show list the problems I have.

I corrected the FREERTOS\_ROOT variable to point to “C:\Users\Antonello\SimplicityStudio\FreeRTOSSiLabs”.

The declaration of ‘EMU\_EM23 TypeDef Init’ is the following:

```auto
/** Energy Mode 2 and 3 initialization structure */
typedef struct
{
  EMU_EM23VregMode_TypeDef em23Vreg; /**< Enable VREG in EM2/3 */
} EMU_EM23Init_TypeDef;

```

What do you mean by ?

> Support for additional EFM32 devices and starter kits can be installed using the Simplicity Studio menus.

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [March 29, 2016, 1:10pm UTC](https://forums.freertos.org/t/simplicity-studio-and-gcc/5864/5 "2016-03-29T13:10:29Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, March 29, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/ff58a2ae/#1867/83d3):

Please ensure the following the instructions on importing the project  
exactly - I see from the screen shot you have “copy projects into  
workspace” checked, which it should not be.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 29, 2016, 1:55pm UTC](https://forums.freertos.org/t/simplicity-studio-and-gcc/5864/6 "2016-03-29T13:55:54Z")

</div>

**[ndunello](https://sourceforge.net/u/ndunello/)** wrote on [Tuesday, March 29, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/ff58a2ae/#0b24):

Ok, this resolve FREERTOS\_ROOT variable problem!  
Remains the problem with EMU\_EM23Init, probably because I have not the STK3700 connected to the PC.

Be possible to compile For the STK3600?  
If yes, what are the steps to follow?

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [March 29, 2016, 1:59pm UTC](https://forums.freertos.org/t/simplicity-studio-and-gcc/5864/7 "2016-03-29T13:59:13Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, March 29, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/ff58a2ae/#0b24/1e67):

> Be possible to compile For the STK3600?  
> If yes, what are the steps to follow?

That is becoming a tools issue, rather than a FreeRTOS support issue,  
but if the chip on the STK3600 is the same as that on the starter kit  
then I would guess the only change needed would be the pin used to  
toggle the LED.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 30, 2016, 1:09pm UTC](https://forums.freertos.org/t/simplicity-studio-and-gcc/5864/8 "2016-03-30T13:09:35Z")

</div>

**[ndunello](https://sourceforge.net/u/ndunello/)** wrote on [Wednesday, March 30, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/ff58a2ae/#9cc0):

Starting from the example for the STK3700 board I created a demo for STK3600 board.  
I attached the project that mast be unpacked in the folder “FreeRTOS\_SiLabs\freeRTOS\Demo”.

I see the LED0 flashing.

It’s can insert a kind of “task table” in Simplicity Studio ?

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [March 30, 2016, 1:42pm UTC](https://forums.freertos.org/t/simplicity-studio-and-gcc/5864/9 "2016-03-30T13:42:08Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Wednesday, March 30, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/ff58a2ae/#9cc0/7cdd):

If Simplicity Studio uses GDB then you should be able to use the Eclipse  
StateViewer plug-in available from the  
[http://www.highintegritysystems.com](http://www.highintegritysystems.com) website.
