


Verified 980 bytes in 0.030723s (31.150 KiB/s)Īll this thanks to advice from great thanks! Wrote 1024 bytes from file /home/sheep/dev/3rdparty/stm32f0-discovery-basic-template/main.bin in 0.104813s (9.541 KiB/s) four lines need to be connected with the STM32x-discovery board: Oct 12. Target halted due to breakpoint, current mode: Thread For erasing the chip halt the device then use nrf51 masserase 0 command and. XPSR: 0xc1000000 pc: 0xfffffffe msp: 0xfffffffc Fully protected Dual H-Bridge: L6205/6225. Target halted due to debug-request, current mode: Thread Aircon compressor and fans, industrial control, washing- machine. After running that, and resetting the chip, I finally got: openocd -f extra/fff.cfg -f extra/stm32f0-openocd.cfg -c "stm_flash `pwd`/main.bin" -c shutdown No problem, we can unlock it with "stm32x unlock 0". > At a guess ST have not correctly programmed the. > I do not have access to the newer version but should be no reason why > it would not work. XPSR: 0xc1000003 pc: 0xfffffffe msp: 0xfffffffcĮrror: failed erasing sectors 0 to 0OK, so apparently the chip is write-protected. Moreover, the > stm32f2x unlock 0 and flash protect 0 0 last off commands success > most times, but then writing to flash fails in the erase phase with > stm32x device protected message. Target halted due to debug-request, current mode: Handler HardFault
STM32X DEVICE PROTECTED HOW TO
I also figured out how to do it with openocd, but dont remember where I wrote that down. Info : stm32f0x.cpu: hardware has 4 breakpoints, 2 watchpoints stm32x device protected failed erasing sectors 0 to 0 can use the write unprotect bootloader command which doesnt respond, but on the next power cycle it is now unlocked. Info : STLINK v2 JTAG v17 API v2 SWIM v4 VID 0x0483 PID 0x3748 Info : Unable to match requested speed 1000 kHz, using 950 kHz Srst_only separate srst_nogate srst_open_drain connect_deassert_srst The results might differ compared to plain JTAG/SWD Info : The selected transport took over low-level target control. I got a new error with this: openocd -f extra/fff.cfg -f extra/stm32f0-openocd.cfg -c "stm_flash `pwd`/main.bin" -c shutdown This means your blue pills flash is read-only. First of all, the error I'm getting was described in an issue and seems like adding "reset_config none separate" fixes that. Error: stm32x device protected Error: failed erasing sectors 0 to 23 Error: flasherase returned -4. I think my bigger batch of boards I just ran them through the uart interface like an.
STM32X DEVICE PROTECTED DOWNLOAD
I'm using a ST-LinkV2 clone, for download and debug purposes.On a quest to configure OpenOCD properly. stm32x device protected failed erasing sectors 0 to 0 can use the write unprotect bootloader command which doesnt respond, but on the next power cycle it is now unlocked. In procedure 'init' called at file "embedded:startup.tcl", line 495Īfter a search, I found that I can get the firmware putting the boot0 in VCC, so I did this, and the follow error was shown:Įmbedded:startup.tcl:476: Error: ** Programming Failed ** Info : STLINK v2 JTAG v34 API v2 SWIM v7 VID 0x0483 PID 0x3748Įrror: init mode failed (unable to connect to the target) I'm studying about STM32 low power modes, and after program the device with _Wfi instruction I cant program another firmware in the device, I tried to use the STM utility to erase the code, but it show that the flash had write protection.
