[SOLVED] porting zephyr to Silabs EFM32 happy gecko


Marcio Montenegro
 

Hi all,

1. I add:
CONFIG_NEWLIB_LIBC=y
on efm32hg_slstk_3400a_defconfig file

2. Silabs Happy gecko is cortex_m0+ armv6 so the correct efm32hg.dts configuration is:

#include <arm/armv6-m.dtsi>
#include <silabs/mem.h>

/ {
    cpus {
        cpu@0 {
            compatible = "arm,cortex-m0+";
        };
    };
...

Many thanks to Tim,Kumar and Christian

Cheers,
Marcio

On Thu, Feb 22, 2018 at 4:54 PM, Marcio Montenegro <mtuxpe@...> wrote:
Hi all,

I am trying to port  Silabs EFM32 happy gecko to Zephyr project
There is a similar port:
http://docs.zephyrproject.org/boards/arm/efm32wg_stk3800/doc/efm32wg_stk3800.html

My zephyr linux environment  is ok I can build wonder gecko project.
I can also run ninja menuconfig for new board without errors.

$ cd zephyr/samples/hello_world
$mkdir -p build/efm32hg_slstk3400a && cd build/efm32hg_slstk3400a
$cmake -GNinja -DBOARD=efm32hg_slstk3400a ../..

( No errors after cmake)

$ninja

../../../../ext/hal/cmsis/Include/arm_math.h:319:18: fatal error: math.h: No such file or directory
 #include "math.h"

The "math.h file"  is  on the sdk:
/opt/zephyr-sdk/sysroots/armv5-zephyr-eabi/usr/include

Apparently the folder is not included in build

The complete log of my build on pastebin:
https://pastebin.com/sTKi52pL

Is there anything that I am missing ?

Best regards,
Marcio



Join devel@lists.zephyrproject.org to automatically receive all group messages.