Skip to content
Advertisement

How to compile mbed main.c++ and main.h file in Linux eclips to get build files(.elf.hex)

I will be very thankful if someone explain how to use .c++ and .h file in eclips using Ubuntu platform to compile it and get the .elf, .hex and .bin file. I have some files from mbed STM32f4 board. Please guide me Thank you

Advertisement

Answer

Two options:

  1. Build via mbed CLI. After installing set your build command in Eclipse to:

    mbed compile -m YOUR_BOARD -t GCC_ARM --profile ./mbed-os/tools/profiles/debug.json

  2. Build via a Makefile. In the mbed Online Compiler right click on your project, select Export > Eclipse (GCC ARM). This will give you an Eclipse project with the makefile.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement