The instructions on how to update are way down below.
- VS Code
- Onethinx Dependencies Pack
- CMake
- Make
- Install homebrew GNU by:
make brew install homebrew/core/make
as explained here.
- Install homebrew GNU by:
- 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 CMake path to VS Settings:
"cmake.cmakePath": "/Applications/CMake.app/Contents/bin/cmake",
- Unzip the pack archive to your local harddisk (eg: /Applications/VSCode_OnethinxPack_macOS).
Hint: you might want to remove '-master' at the end of the folder name. - For MacOS Mojave and older (<=10.14)
- If the file ~.bash_profile doesn't exist, create it: Terminal >>
cd ~ && touch .bash_profile
- Open ~.bash_profile: Terminal >>
cd ~ && open -e .bash_profile
- If the file ~.bash_profile doesn't exist, create it: Terminal >>
- For MacOS Catalina and newer (>= 10.15)
- If the file ~.zprofile doesn't exist, create it: Terminal >>
cd ~ && touch .zprofile
- Open ~.zprofile: Terminal >>
cd ~ && open -e .zprofile
- If the file ~.zprofile doesn't exist, create it: Terminal >>
- 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_macOS/variables.env
- Set the correct path in this pack's
variables.env
file. - Restart your machine (or log-out and log-in) to reload the environment variables.
- If Make and the compiler is correctly installed by typing the following into your terminal or terminal window of VS Code.
make -v
arm-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.
- download the latest Onethinx Dependencies Pack from https://github.com/onethinx/VSCode_OnethinxPack_macOS
- delete the contents of the Dependencies Pack folder from you harddisk
- unpack the contents of the archive to the Dependencies Pack folder
- Set the correct path in this pack's
variables.env
file. - Restart your machine (or log-out and log-in) to reload the environment variables.