mirror of
https://github.com/RfidResearchGroup/ChameleonUltra.git
synced 2026-04-20 07:05:48 +00:00
2.6 KiB
2.6 KiB
How to use the Firmware
In this file you can look up how to edit, compile and debug the code!
Editing the code
We are using Visual Studio Code to edit this project! Simply download and install it!
- Install the ARM-GCC version 9.3.1 Compiler and remember the path where you installed it.
- Install the C++ Extension in VS-Code.
- Create a new IntelliSense Configuration:
- press F1 in VS-Code and enter
C/C++: Edit Configurations (UI) - Add a new Configuration and name it
- Specify your Compiler path (path of previously installed Compiler
binfolder) - Change IntelliSense mode to
gcc-arm (legacy) - Add include path
${workspaceFolder}/**
- press F1 in VS-Code and enter
Compiling the code
- Install the compiler (for instructions have a look at Editing the code)
- Edit Makefile.defs:
- Change
GNU_INSTALL_ROOT(path of previously installed Compilerbinfolder) - Change
GNU_VERSION(Version of the installed Compiler) - Don't forget to remove the
#in front of the changed lines
- Change
- Install make
- Ubuntu:
- Open a terminal.
- Run the following command to install Make:
sudo apt-get install build-essential
- Windows using Chocolatey:
- Install Chocolatey:
- Open a PowerShell terminal with administrator privileges.
- Run the following command to install Chocolatey:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
- Install Make:
- In the same PowerShell terminal, run the following command to install Make using Chocolatey:
choco install make
- In the same PowerShell terminal, run the following command to install Make using Chocolatey:
- Install Chocolatey:
- macOS:
- Open a terminal.
- Install Homebrew package manager by running the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Once Homebrew is installed, run the following command to install Make:
brew install make
- Ubuntu:
- go into folder and run
make
Debugging the code
- Install openocd
- Install Cortex-Debug VS-Code Extension
- MORE INFO ADDED LATER