cancel
Showing results for 
Search instead for 
Did you mean: 

Build gnu-tools-for-stm32 repo in Windows

DRega.1
Associate III

I downloaded gnu-tools-for-stm32 repo to a Windows 10 machine. I have mingw64 installed.

I want to study arm-none-eabi-objcopy with a view to extracting bin files for internal and external flash from an elf in a self-contained utility.

When I navigated to my checked out repo and ran build-prequisites.sh from a mingw64 shell it failed with the below

+++2024-01-05:11:53:13 (/e/Various_Backups/gcc-arm-src/gnu-tools-for-stm32/build-common.sh:316): host_arch=x86_64 +++2024-01-05:11:53:13 (/e/Various_Backups/gcc-arm-src/gnu-tools-for-stm32/build-common.sh:317): '[' xMinGw64_nT-10.0-18363 == xlinux ']' 
+++2024-01-05:11:53:13 (/e/Various_Backups/gcc-arm-src/gnu-tools-for-stm32/build-common.sh:326): '[' xMinGw64_nT-10.0-18363 == xdarwin ']' +++2024-01-05:11:53:13 (/e/Various_Backups/gcc-arm-src/gnu-tools-for-stm32/build-common.sh:340): error 'Unsupported build system : MinGw64_nT-10.0-18363' +++2024-01-05:11:53:13 (/e/Various_Backups/gcc-arm-src/gnu-tools-for-stm32/build-common.sh:29): error(): set +u 
+++2024-01-05:11:53:13 (/e/Various_Backups/gcc-arm-src/gnu-tools-for-stm32/build-common.sh:30): error(): echo 'bash: error: Unsupported build system : MinGw64_nT-10.0-18363' bash: error: Unsupported build system : MinGw64_nT-10.0-18363 +

It seems to indicate that it is unhappy with mingw64.
Does anybody know how this can be built on a Windows machine? Do I have to open some kind of Linux shell (never done that so instructions would be appreciated)

1 REPLY 1
Amel NASRI
ST Employee

Hi @DRega.1 ,

As recommended in this post https://community.st.com/t5/stm32cubeide-mcus/how-to-install-and-use-gnu-tools-for-stm32-on-ubuntu-22-04-lts/m-p/627316#M232212, can you try the option "--skip_steps"?

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.