2025-06-21 12:37 PM
Hi,
I am currently using the following microcontroller (STM32F100C8T6B) in my design. I have built my project using the STM32CubeIDE (STM32CubeIDE Version: 1.18.1). I have created the following output files (BIN, HEX, and ELF) and I was able to RUN and download the source code onto my board (Design) using the STM32CubeIDE using the "elf" file successfully. I used the Segger J-Link as a probe.
If I used a different Flash Programmer such as STM32Cube Programmer or ST-Link instead of STM32CubeIDE to download the my code onto the board using the output files I created such as (.BIN, .HEX, .ELF or .SREC), it download onto the the board, the board doesn't not programmed or the download doesn't work.
It appears that the board is programmed only whenever I use the STM32CubeIDE environment, not the regular Flash Programmers. The bottom line is that it works with IDE environment, but not with the regular Flash programmers are used. I am not sure what the problem is and any help would be greatly appreciated
Thanks,
WJ
2025-06-23 8:41 AM
STM32CubeIDE uses STM32CubeProgrammer under the hood.
If you try to flash with STM32CubeProgrammer, does it report success? Do the contents of the flash match what is in the file? If not, show screenshots that clearly indicate the errors or issues.
2025-06-23 9:32 AM
Hi TDK,
It looks like it was a setting issue. Under Mode: selected "Connect Under Reset" and I set the start address to 0x08000000 (for STM32F100C8). It works now
Thank you.