CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
VS Code Setup Procedure (ARM64 Windows Computers)

If you're using a Windows computer with an ARM64 processor, you may need to take these extra steps to set up your development environment.

STM32 Driver Setup (ARM64)

  1. ARM64 Forum From the following ARM64 forum scoll down to the accepted solution. There should be a file called stsw-link009_v3_ARM64_UNSIGNED.zip from user CPop.1. Install and unzip file.
  2. Click on Windows icon > Shut down or sign out > hold Shift and press Restart.
  3. The computer should restart and open with options. In this order click Troubleshoot > Advanced options > Startup Settings > Restart. The computer shouldrestart with multiple options. input the option for Disable driver signature enforcement.
  4. Computer should boot like normal. Run the dpinst_amd64.exe and follow their instrucations.
  5. Installer should now be installed.

VS Code Setup (ARM64)

  1. Clone this repo.
  2. Open this repo in File Explorer.
  3. Right click on the firmware folder in this repo, and select "Open with VS Code". Do not open the entire repo with VS Code like you normally would.
  4. When prompted in the bottom-right corner about "A git repository was found in the parent folders...", click "Yes".
  5. Install the recommended VS Code extensions when prompted.
    • If you're not prompted, use Ctrl+Shift+P to navigate to ">Extensions: Show Recommended Extensions".
  6. Follow the Chocolatey install guide.
  7. Open a powershell terminal and type choco install gcc-arm-embedded when prompted just respond with y. Repeat steps for choco install make, and choco install openocd
  8. In the STM32 for VScode page, there should be a option to check for build tools and click it.
  9. There should be 3 slots for directories. If directory says False, replace with C:\ProgramData\chocolatey\bin. Then in STM32 extension click Check Build Tools.
  1. In the "ST" extension pane, use the "Build" button to build the repo; or, use Ctrl+Shift+P to open the command palate, search for STM32, and select the Build option.
  2. Plug in an STM32 dev kit, and flash the project using the "Flash STM32" button/command palate option.