Setting up the toolchain on widows

I am following the installation guide for the toolchain for windows.

STM32CubeIDE seems to be preferring its vscode extension over the eclipse based IDE and when I used that, it got complicated.
The extension allows the installation of bundles. The ‘gnu-tools-for-stm32’ provides the correct toolchain and there is also a default bundle for cmake. Which is great!

It however does not set up the path and the . ./una-sdk/Utilities/Scripts/export-stm32-tools.ps1 command does not fine the right tools because of that. By adding the downloaded bundle to my path (AppData\Local\stm32cube\bundles\gnu-tools-for-stm32\14.3.1+st.2\bin) it works.

I also had to install make via choco install make since it isn’t provided with the vscode extension.

Might just be a me issue, but I didn’t want to install the IDE itself since it requires an account on their website.

Maybe there should be a specific bit in the guide about this?

1 Like

Another thing in the guide: before calling cp "${env:UNA_SDK}\Examples\Apps\Alarm\*" MyAlarm -Recurse -Force the directory should already exist so you should already have executed mkdir MyAlarm

And lastly, even though I installed pyelftools (0.33) via the requirements.txt, I still get the error
<MyPath>/una-sdk/Utilities/Scripts/app_packer/app_packer.py", line 40, in
from elftools.elf.elffile import ELFFile
ModuleNotFoundError: No module named 'elftools'

Hi both, thanks for pointing out! We’ll aim to get this tidied up next week.