- VS Code
- Onethinx Dependencies Pack
- CMake
- Install CMake:
sudo apt install cmake
- Install CMake:
- Install VS Code.
- Install extensions:
- ARM Support For Visual Studio Code (dan-c-underwood)
- C/C++ IntelliSense, debugging (microsoft)
- CMake language support (twxs)
- CMake Tools (microsoft)
- Cortex-Debug GDB support (marus25)
- Power Tools (e.GO Mobile)
- LinkerScript support for GNU (Zixuan Wang)
- Open in Application (Fabio Spampinato)
- Output Colorizer (IBM)
- Tasks (actboy168)
- Apply the OpenOCD USB rules by running
yourpath/VSCode_OnethinxPack_Linux/tools_2.0/linux/openocd/udev_rules/install_rules.sh.
- Unzip the pack archive to your local harddisk (eg: /Applications/VSCode_OnethinxPack_Linux).
Hint: you might want to remove '-master' at the end of the folder name. - Open ~.profile: Terminal >>
cd ~ && nano .profile
or when using Bash shell:
open ~.bash_profile: Terminal >>cd ~ && nano .bash_profile - Add this to the end of the file (make sure you enter the correct path) and save:
# Loading environment variables for the Onethinx Pack source /locationOfYour/VSCode_OnethinxPack_Linux/variables.env - Set the correct path in this pack's
variables.envfile. - Restart your machine (or log-out and log-in) to reload the environment variables.
- If CMake, Make and the compiler is correctly installed by typing the following into your terminal or terminal window of VS Code.
cmake -versionmake -varm-none-eabi-gcc -v
- If you have not done this yet, download the Hello World from https://ghithub.com/onethingx/VSCode_HelloWorld
- If this builds without error, the Onethinx build suite has been installed properly.
- After changing the device configuration (or project file structure) to use
- Clean Reconfigure
- Clean Rebuild in order to build the image properly
- To delete the contents of the build folder
- if you copied the project including build folder from another location / machine
- when build fails.