-
Notifications
You must be signed in to change notification settings - Fork 0
Set up and Installation Ubuntu
Samuel Pio Dcosta edited this page Aug 1, 2020
·
2 revisions
There are 2 ways of installing ARM GCC on Linux based systems (Ubuntu as an example):
- Direct install from apt repository
- Install via the downloaded tar file
- Open terminal
- "sudo apt install gcc-arm-none-eabi" or "sudo apt-get install gcc-arm-none-eabi"
- Check ARM version: arm-none-eabi-gcc --version -> You will get the existing arm toolchain version installed on your system
- Open Website: https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads
- Download the latest Toolchain. It will be a zipped file (tar file )
- Extract tar file in /opt directory (tar xvfj filename.tar.bz2)
- Now we need to set the default ARM toolchain path
- Open bashrc file and add the path into it PATH=$PATH:$/opt/gcc-arm-none-eabi-9-2020-q2-update/bin
- Save the file and close
- Check ARM version: arm-none-eabi-gcc --version -> You will get the existing arm toolchain version installed/downloaded on your system
- Go to Superuser mode and do the following
- https://www.youtube.com/watch?v=DXgvaibDJzo
- Install lpc21isp module into your system. (sudo apt install lpc21isp)
- lpc21isp -control -bin ./filename.bin /dev/ttyUSB0 38400 12000
- https://www.youtube.com/watch?v=5TQLv97_bz0 -> Can be used as reference
NOTE: To automate the flashing/downloading of code into the target we have integrated this command into the makefile