You’re right, by default they only build the .bin
file. To change this, go into your PlatformIO folder (/home/<user>/.platform
or C:\Users\<user>\.platform
and open packages/ststm32/builder/main.py
and change
target_firm = env.ElfToBin(join("$BUILD_DIR", "${PROGNAME}"), target_elf)
to
target_firm = env.ElfToHex(join("$BUILD_DIR", "${PROGNAME}"), target_elf)
and rebuild. The resulting hex file will be in .pioenvs/genericSTM32F103ZE/firmware.hex
.
@ivankravets Maybe it’s good feature to be able to change what builder will be used via the platformio.ini
?