stlink: CKS32: Unable to flash STM32F103C8T6 with stlink 1.5.1
I’m on Arch linux and i install stlink through it repository and when I install all the require dependencies and run stlink-flash hello.bin 0x08000000 it gave me this error
st-flash 1.5.1 2019-09-15T00:41:53 INFO usb.c: – exit_dfu_mode 2019-09-15T00:41:53 INFO common.c: Loading device parameters… 2019-09-15T00:41:53 INFO common.c: Device connected is: F1 Medium-density device, id 0x20036410 2019-09-15T00:41:53 INFO common.c: SRAM size: 0x5000 bytes (20 KiB), Flash: 0x20000 bytes (128 KiB) in pages of 1024 bytes 2019-09-15T00:41:53 INFO common.c: Attempting to write 1228 (0x4cc) bytes to stm32 address: 134217728 (0x8000000) Flash page at addr: 0x08000400 erased 2019-09-15T00:41:53 INFO common.c: Finished erasing 2 pages of 1024 (0x400) bytes 2019-09-15T00:41:53 INFO common.c: Starting Flash write for VL/F0/F3/F1_XL core id 2019-09-15T00:41:53 ERROR flash_loader.c: unknown coreid, not sure what flash loader to use, aborting! coreid: 2ba01477, chipid: 410 2019-09-15T00:41:53 WARN flash_loader.c: Failed to write flash loader to sram! 2019-09-15T00:41:53 ERROR common.c: stlink_flash_loader_init() == -1 stlink_fwrite_flash() == -1
I’m been searching online how to fix this but no luck and also the preloaded led blink is gone so I don’t know if I broke the chip or not. If anybody find a solution for this I’ll be appreciated thanks
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (2 by maintainers)
Me too. Running
st-flash --reset --format binary write generic_boot20_pc13_bootloader_par_defaut_led_en_pc13.bin 0x8000000gives:
It’s a new device ordered from aliexpress, and received today.
I must add that using with ftdi:
stm32loader -p /dev/cu.usbserial-A5XK3RJT -e -w -v generic_boot20_pc13_bootloader_par_defaut_led_en_pc13.binworks fine.Help would be greatly appreciated.