Skip to content

onethinx/VSCode_OnethinxPack_Linux-DEPRECIATED

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Onethinx Core Linux dependencies pack

How to setup Visual Studio Code with the Onethinx Core dependencies pack

1. Download prerequisites

2. Install VS Code & extensions

  • 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.

3. Install the Onethinx Dependencies Pack

  • 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.env file.
  • Restart your machine (or log-out and log-in) to reload the environment variables.

4. Check

  • If CMake, Make and the compiler is correctly installed by typing the following into your terminal or terminal window of VS Code.
    • cmake -version
    • 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.

5. Remind

  • 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.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors