bmd-studio / stm32-for-vscode

STM32 extension for working with STM32 and CubeMX in VSCode
MIT License
195 stars 27 forks source link

"Flash STM32" option cannot use .elf from release #167

Open Kndy666 opened 7 months ago

Kndy666 commented 7 months ago

Hello! In the beta version of the extension, I found two problems. First is when I use "Build Release" from command memu, it still uses "-Og" optimization argument, I suppose maybe using "-Os" as default release argument is better. Second is the command "Flash STM32" cannot select .elf file from the release option, it still uses DEBUG=1 as makefile argument, adding a selector here may help flash different versions of .elf file.

jortbmd commented 7 months ago

Hi! Thanks for opening up an issue! I will look into it and update you when a fix is available.