Scripts to install dependencies to compile and flash ARM microcontrollers.
- Ubuntu LTS 18.04
- Ubuntu LTS 20.04
The install-arm-toolchains.sh script will install ARM's 9-2019-q4-major version. This repo will be updated to install the newest release. If there is a new GNU update and the scripts aren't updated, then you can either do the following
You must download the compiler plus any debugger/flash tool needed for your board.
The following list shows which scripts corresponds to which device.
- ARM Cortex-R or Cortex-M microcontrollers : install-arm-toolchain.sh
- ARM Cortex-A 32-bit microprocessors running Embedded Linux : install-arm-none-linux.sh
- ARM Cortex-A 64-bit microprocessors running Embedded Linux : install-aarch64-none-linux.sh
Please note the scripts for the ARM Cortex-A microprocessors will only work on an x86_64 machine.
The following list shows which flash/debugger scripts you need to install.
- Jlink can be used for almost any ARM microcontroller : install-jlink.sh
- Stlink is only meant for STM microcontrollers : install-stlink.sh
Please note the bins for stlink is created from Texane's stlink repo and the bins are contained in that directory. Moving the directory could make stlink stop working on your machine unless you edit the path.
If you cannot see/run the script in the terminal, you need to change the permissions of the bash scripts. Execute the following in the terminal:
chmod u+x script.sh
Running the bash scripts periodically will keep your toolchains updated. If you need something, create an Issue ticket and I will accomodate ASAP.
If you do not get any errors, call the following lines depending on which script was executed. You should not see any errors that the system can't find the bin files.
- install-arm-toolchain.sh
arm-none-eabi-gcc --version
- install-stlink.sh
st-info --version
- install-jlink.sh
JLinkExe
To remove all files, run the uninstall.sh script. This will remove everything that all the scripts download.
VSCode is a useful text editor if you are not comfortable with command line debugging. I like vscode since I can look at the registers. Download the cortex-debug extension.
Sikender's repo holds config files for vscode.