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)
- 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.
- Click on Windows icon > Shut down or sign out > hold Shift and press Restart.
- 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
.
- Computer should boot like normal. Run the
dpinst_amd64.exe
and follow their instrucations.
- Installer should now be installed.
VS Code Setup (ARM64)
- Clone this repo.
- Open this repo in File Explorer.
- 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.
- When prompted in the bottom-right corner about "A git repository was found in the parent folders...", click "Yes".
- Install the recommended VS Code extensions when prompted.
- If you're not prompted, use Ctrl+Shift+P to navigate to ">Extensions: Show Recommended Extensions".
- Follow the Chocolatey install guide.
- 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
- In the STM32 for VScode page, there should be a option to check for build tools and click it.
- 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
.
- 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.
- Plug in an STM32 dev kit, and flash the project using the "Flash STM32" button/command palate option.