stm32f070c6 boot issues
Hello,
I'm using stm32f070c6. When pulling up 'BOOT0' with 10kΩ to VCC(3.3V) , I'm able to run my code on my custom designed board using STM32CUBEIDE.
When I press RST or power cycle board, nothing runs. This is expected right? Since I'm in Bootloader mode.
State
1) Here is the issue. When pull 'BOOT0' to ground through 10kΩ, I can program the device only once and if I try to reprogram thereafter, I get the 'no target found error'. No code runs on the device. I do see the current of the device increase to a level similar when code is running when in Boot0=vcc mode.
State 2) I then set Boot0 back to VCC and I'm able to debug and run code again. If I open STM32CubeProgrammer, I'm able to erase the chip completely.
I then put the device back to State 1) again have the same issue. I'm able to connect and program once only with no code running. I'm unable to get anything to work when Boot0 is at GND.
Notes: In STM32CUBEMX, 'Debug' is set to 'Serial Wire'
In the data sheet i studied as boot0 connected to vcc means the code loaded into system memory , connected to GND means code loaded into main flash memory
if anyone have an idea please give a reply
thanks in advance
