Setup arm-elf-gcc on your Linux machine
I have been using WinARM as compiler and flashmagic for flashing ARM binary for couple of months. Since, I wanted to move my development-setup on Ubuntu, I was desperately searching arm-elf-gcc toolchain in Linux. Finally I got some info about ready-made arm-elf-gcc binaries version #4.1.0. thanks to google!! Here are the steps for doing setup:
1) Download arm-elf-gcc
$ curl -O -C - http://www.mikrocontroller.net/download/arm-toolchain-linux-2.tar.bz2
2) Unzip the file
$ tar -xjvf arm-toolchain-linux-2.tar.bz2
3) append your PATH variable with address of unzipped folder.
4) Once your binary is ready, flash the code using lpc21isp.
Syntax: lpc21isp -control -hex executable.hex comport baudrate Oscillator_in_kHz
-control for controlling RS232 lines for easier booting (Reset = DTR, EnableBootLoader = RTS)
In my case command looks as follows:
$ lpc21isp -control -hex main.hex /dev/ttyUSB0 9600 14746
I will explore more to build arm-elf-gcc OR arm-eabi-gcc on Linux, all by myself.
I have been using WinARM as compiler and flashmagic for flashing ARM binary for couple of months. Since, I wanted to move my development-setup on Ubuntu, I was desperately searching arm-elf-gcc toolchain in Linux. Finally I got some info about ready-made arm-elf-gcc binaries version #4.1.0. thanks to google!! Here are the steps for doing setup:
1) Download arm-elf-gcc
$ curl -O -C - http://www.mikrocontroller.net/download/arm-toolchain-linux-2.tar.bz2
2) Unzip the file
$ tar -xjvf arm-toolchain-linux-2.tar.bz2
3) append your PATH variable with address of unzipped folder.
4) Once your binary is ready, flash the code using lpc21isp.
Syntax: lpc21isp -control -hex executable.hex comport baudrate Oscillator_in_kHz
-control for controlling RS232 lines for easier booting (Reset = DTR, EnableBootLoader = RTS)
In my case command looks as follows:
$ lpc21isp -control -hex main.hex /dev/ttyUSB0 9600 14746
I will explore more to build arm-elf-gcc OR arm-eabi-gcc on Linux, all by myself.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home