Under Windows you can build the hex file with the following steps:
Open command prompt (cmd.exe), cd to project folder and extend your path with GNU build tools, e.g.:
set PATH=D:\STM32CubeIDE_1.10.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\bin;D:\STM32CubeIDE_1.10.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\bin;%PATH%
fix Makefile by removing line 45: Core/Src/key.c \
build hex file with: make
...
text data bss dec hex filename
20624 468 6544 27636 6bf4 build/WeAct_HID_Bootloader_F4x1.elf
arm-none-eabi-objcopy -O ihex build/WeAct_HID_Bootloader_F4x1.elf build/WeAct_HID_Bootloader_F4x1.hex
arm-none-eabi-objcopy -O binary -S build/WeAct_HID_Bootloader_F4x1.elf build/WeAct_HID_Bootloader_F4x1.bin
Hi,
I don't know what to do exactly ? Do I have to open the folder in STM32CubeIDE ?
Which file to upload to the microcontroller ?