5 years, 11 months ago.

How to compile the latest mbed os 5.8?

Hi Team,

I downloaded the latest zipped source code of mbed-os-5.8.4 from official link: https://github.com/ARMmbed/mbed-os/releases/tag/mbed-os-5.8.4

But how can I build it for my Nordic target board, which is nRF52 DK?

Thanks

Question relating to:

1 Answer

5 years, 11 months ago.

Hi Cake,

If you've pulled down the OS, the easiest method is to use the Mbed CLI which is documented here along with a tutorial: https://github.com/ARMmbed/mbed-cli https://os.mbed.com/docs/v5.8/tutorials/quick-start-offline.html

To target the nRF52DK you will use one of these commands depending on the toolchain you have:

  mbed compile -m nrf52_dk -t arm
  mbed compile -m nrf52_dk -t gcc_arm
  mbed compile -m nrf52_dk -t iar

You will also need to have a source file that has main().

-Ralph, Team Mbed

Accepted Answer

Thank you so much. It is working.

posted by Tony Huang 16 May 2018