STM32F013C8T6 (blue pill) flash error
I am using STM32F103C8T6 with libopencm3 and FreeRTOS. Some programs I have can only flash once, even though the code function properly. The second time I flash it will say something like "unknown chip id! 0x3748. Failed to connect to target". I have to set boot0 jumper to VDD, and issue "st-flash erase" from console, then set boot0 jumper back to GND to reset the board.
My question is: Is this normal? If not, what could be the problem? How can I narrow down the issue? It really is inconvenient to go through so many steps to flash a new code.
