Skip to content
masiko edited this page Aug 13, 2015 · 3 revisions

mbed offline compile

The following steps were performed on Ubuntu 14.04 LTSx64.

  1. Get gcc-arm-none-eabi-4_9-2014q4-20141203-linux.tar.bz2

  2. tar -xjvf gcc-arm-none-eabi-4_9-2014q4-20141203-linux.tar.bz2 => mv ./gccarm-none-eabi-4_9-2014q4 ~/Xdir

  3. sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0

  4. vi ~/.bash_profile

    PATH = $PATH:/home/user-name/...../xdir/gccarm-none-eabi-4_9-2014q4/bin export PATH

  5. source ~/.bash_profile

  6. cd ~/.../export-mbed-program-dir

  7. make

compile err

  • undefined reference to `__wrap_main'

    ./mbed is old => reexport program

Clone this wiki locally