|
Cross-compiling binaries for non-Linux ARM Cortex-M microcontrollers on an x86 Ubuntu system is very easy!
TI Stellaris LM4F120 LaunchPad (ARM Cortex-M4F) |
NXP LPC8xx/LPC810 microcontroller (ARM Cortex-M0+) |
|
|
On Ubuntu systems, the arm-none-eabi-gcc toolchain can be installed from a PPA archive maintained by the GCC ARM Embedded Maintainers team:
sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded sudo apt-get update sudo apt-get install gcc-arm-none-eabi
mkdir stellarisware cd stellarisware unzip /wherever/you/saved/SW-EK-LM4F120XL-9453.exe
make clean make cd boards/ek-lm4f120xl ls -l */gcc/*.bin
lm4flash project0/gcc/project0.bin lm4flash qs-rgb/gcc/qs-rgb.bin
LM4F120 references
git clone git@github.com:microbuilder/LPC810_CodeBase.git cd LPC810_CodeBase/src make
lpc21isp blinky.hex /dev/ttyUSB0 115200 14746
Note that lpc21isp does not support the LPC810 until version 1.94. Ubuntu supplies an older version (until 13.10?), so use this lpc21isp 1.94 PPA for earlier Ubuntu systems: https://launchpad.net/~kamalmostafa/+archive/lpc21isp
LPC810/LPC8xx references:
Was this article useful to you? Have comments or corrections? Let me know: Kamal Mostafa <kamal@whence.com>