Skip to content

The Onethinx Pack for using the OTX-18 LoRa(WAN) module with VS Code

Notifications You must be signed in to change notification settings

onethinx/VSCode_OnethinxPack_Windows

Repository files navigation

Onethinx Core Windows dependencies pack DEPRICIATED

Please use OTX-Maestro for a single click full install solution

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 Assembly 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)
    • Output Colorizer (IBM)
    • Power Tools (e.GO Mobile)
    • Tasks (actboy168)

3. Install the Onethinx Dependencies Pack

  • Unzip the pack archive to your local harddisk (eg: C:\VSCode_OnethinxPack_Windows)
    • Hint: you might want to remove '-main' at the end of the folder name
  • Open your command prompt (cmd)
  • Run C:\VSCode_OnethinxPack_Windows\setVariables.bat
    • You'll see the environment variables and the path being set
  • 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 command prompt or terminal window of VS Code
    • cmake -version
    • mingw32-make -v
    • arm-none-eabi-gcc -v
  • If you have not done this yet, download the Hello World Project

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
  • This pack contains the 64bit version of CMake. Replace with the 32bit version if you run on a 32bit machine.

How to update

  • Download the latest Onethinx Dependencies Pack
  • Delete the contents of the Dependencies Pack folder from you harddisk
  • Unpack the contents of the archive to the Dependencies Pack folder
  • Run C:\VSCode_OnethinxPack_Windows\removeVariables.bat
  • Run C:\VSCode_OnethinxPack_Windows\setVariables.bat
  • Restart your machine (or log-out and log-in) to reload the environment variables
  • If not done yet, update your projects CMakeLists.txt: change ${TOOL_LOC} to $ENV{ONETHINX_TOOLS_LOC} (see the Project Examples for reference).

About

The Onethinx Pack for using the OTX-18 LoRa(WAN) module with VS Code

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published