Reply
Posts: 28
Registered: ‎04-07-2017
Accepted Solution

Micrium OS example won't compile

I am using the SLSTK3701A starter kit. I opened the example project called SLSTK3701A_Micriumos_blink, but it comes up with compile errors. For example:

 

./BSP/bsp_os.o: In function `BSP_TickInit':

C:\Users\richardd\SimplicityStudio\v4_workspace\SLSTK3701A_micriumos_blink\GNU ARM v4.9.3 - Debug/../BSP/bsp_os.c:262: undefined reference to `OS_CPU_SysTickInit'

 

./kernel/os_core.o: In function `OSInit':
C:\Users\richardd\SimplicityStudio\v4_workspace\SLSTK3701A_micriumos_blink\GNU ARM v4.9.3 - Debug/../kernel/os_core.c:546: undefined reference to `OSInitHook'

Posts: 2,326
Registered: ‎10-14-2014

Re: Micrium OS example won't compile

not sure if the updating studio mentioned in below post could solve the issue.
http://community.silabs.com/t5/Simplicity-Studio-and-Software/Building-micriumos-wifi-whiteboard-exa...
WeiguoLu
Posts: 28
Registered: ‎04-07-2017

Re: Micrium OS example won't compile

I have SDK version 5.2.2. But I haven't registered my dev kit. Could that be a problem?

EFM32 Micrium compile question.JPG

Posts: 28
Registered: ‎04-07-2017

Re: Micrium OS example won't compile

In project explorer, two files are grayed out. I don't know why...

 

 

Posts: 28
Registered: ‎04-07-2017

Re: Micrium OS example won't compile

In project explorer, two files are grayed out. I don't know why...

See below:

 

EFM32 Micrium compile question - 2.JPG

Posts: 2,326
Registered: ‎10-14-2014

Re: Micrium OS example won't compile

[ Edited ]

I choose "Gecko SDK Suite: MCU 5.2.2.0, Micrium OS 5.0.1 (v1.1.1)" SDK

I saw below folder structure in the project explorer and did build passed without any problem.

You could try to press the grayed file and right click mouse ->resource from configuration->exclude from build->uncheck to see if it make difference.

 file.png

WeiguoLu
Highlighted
Posts: 28
Registered: ‎04-07-2017

Re: Micrium OS example won't compile

I found the problem.

When creating the example project, it will ask for build configurations. I had to uncheck the IAR build configuration. See below:

 

EFM32 Micrium compile question - Solution.JPG