10 years, 11 months ago.

I want to port mbed to stm32f4, how do I get the enviroment working on my Linux machine?

Hi everyone, I plan to port mbed to stm32f4 in order to use smoothie. I started by cloning the repro from:

https://github.com/mbedmicro/mbed.git

and installing the arm toolchain. I thought the first meaning full step would be to try a already supported platform:

python workspace_tools/make.py -m LPC1768 -t GCC_ARM -p 1

Obversly i miss something very fundamental, since I get:

BUILD PROJECT: FILE (LPC1768, GCC_ARM)

Compile: main.cpp [ERROR] In file included from /home/eggert/git/mbed/libraries/tests/mbed/file/main.cpp:1:0: /home/eggert/git/mbed/libraries/tests/mbed/env/test_env.h:5:18: fatal error: mbed.h: No such file or directory compilation terminated.

It seems as the include paths are not correct. Of cause I can fix this one, but than the next include is not found.

What is my mistake?

Thanks

Thorsten

Question relating to:

2 Answers

10 years, 11 months ago.

Hi Thorsten,

You need to build the mbed library first:

> python workspace_tools\build.py -m LPC1768 -t GCC_ARM


HTH, Emilio

10 years, 11 months ago.

Hi Emilio, stupid me... Thanks a lot it works like charm now.

greetings

Thorsten

Hii dear Can someone guide me step by step hpw to port androod on any borad specialy stm32f...or any good tutorial showing that easily or any good book ..i will be glad ..cauz i am a newbe on embedded system.thank you in advance .

posted by Sebastien Abanda 16 Sep 2016