2024-04-16 07:06 PM
I’m trying to create a CMake build for an STM32F4. Everytime I flash the CMake build the device gets bricked. When I do a full chip erase and flash again with a working binary, it still doesn’t work. Note that this second binary was working before but won’t work after flashing the CMake build. My build has a boot loader by the way, so what happens is that we jump from the boot loader to the main program but nothing happens. I’m confused as to why even though I erase the chip this doesn’t work normally immediately, I have to keep disconnecting and connecting the ST-LINk then it works randomly.
2024-04-16 07:16 PM
Not sure we can magically infer a reason from your described behaviour.
Sure it's not running? Not off somewhere dying silently in a while(1) loop?
Is this a custom board? Is BOOT0 pulled low?
If you break in the debugger where is it stopped/stuck?