Problems when i try to program the chip
Hello, im facing a problem when i try to program the chip, im using the eclipse ide and a cheap stlink debugger, the most common error is this:
adapter speed: 24000 kHz
adapter_nsrst_delay: 100
Info : clock speed 24000 kHz
Info : STLINK v2 JTAG v34 API v2 SWIM v7 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.192646
Error: init mode failed (unable to connect to the target)
in procedure 'program'
in procedure 'init' called at file "embedded:startup.tcl", line 495
in procedure 'ocd_bouncer'
** OpenOCD init failed **
shutdown command invoked
I already update the firmware of the stlink, i put boot0 high and use the system memory, i tried to erase the chip using stlink utility, but it appears that flash protections is activated. I also change to software system reset, but nothing works for me. Someone can help me? I think that i have enabled the flash protection in some way and now i cant reprogram the chip.