Can anyone tell me how to convert .elf to .bin please

This depends on which platform (ststm32, espressif32, etc) you are working on. In many cases, PlatformIO already builds the .bin file in the .pio\buid\<environment> folder. What project are you compiling on which platform?

2 Likes