You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
none separate
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Info : STLINK v2 JTAG v31 API v2 SWIM v7 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.222134
Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080000f0 msp: 0x20002800
Info : device id = 0x13030410
Info : flash size = 128kbytes
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000003a msp: 0x20002800
stm32x unlocked.
INFO: a reset or power cycle is required for the new settings to take effect.
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080000f0 msp: 0x20002800
I tried to flash again, and still get the error above.
The text was updated successfully, but these errors were encountered:
@geocine There is no need to unlock through OpenOСD. After resetting the microcontroller, the flash register lock appears again. I looked at the documentation for GD32F103. Unlocking is similar to STM32F103. st-flash must do it correctly.
Specifically, which microcontroller is used? In the OpenOCD logs, the size of the flash is detected as 128k, and st-flash is detected as 1024k.
ps I would recommend testing the flashing on the st-flash compiled from source of develop branch.
@Ant-ON thanks I have tried this version v1.6.1-199-g104940e and it is working perfectly. My microcontroller is GD32F103CBT6 . Thank you so much for the very quick response, I am closing this issue now.
Details
st-flash
Description
open-ocd
generic_boot20_pc13.bin
it was ok but I was not able to enter bootloader mode.naze32_boot20.bin
it was ok but I was not able to enter bootloader mode.gd32f1_generic_boot20_pc13.bin
it was ok but I was not able to enter bootloader mode.gd32f1_frankenmaple.bin
it was ok but I was not able to enter bootloader mode.#3
again , retrying but I cannot flash anymore with this error shownCommandline-Input:
Commandline-Output:
Expected/description:
I expect that it should be able to flash
What I've tried so far
open-ocd
Command
The text was updated successfully, but these errors were encountered: