Сб мар 26, 2022 23:37:39
Found 1 stlink programmers
serial: 132014026315303030303032
openocd: "\x13\x20\x14\x02\x63\x15\x30\x30\x30\x30\x30\x32"
flash: 65536 (pagesize: 1024)
sram: 20480
chipid: 0x0410
descr: F1 Medium-density device
while (1)
{
HAL_GPIO_TogglePin(GPIOC, GPIO_PIN_13);
HAL_Delay(500);
}
st-link is not in the DFU mode. Please restart it.
linux gdb ST-LINK: Could not verify ST device! Abort connection.
Error: STM32F103C8Tx.cpu -- clearing lockup after double fault
Polling target STM32F103C8Tx.cpu failed, trying to reexamine
Open On-Chip Debugger 0.11.0+dev-00438-ga75fc63 (2021-11-03-15:26)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : STLINK V2J39S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 2.427853
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : clock speed 4000 kHz
Info : stlink_dap_op_connect(connect)
Info : SWD DPIDR 0x2ba01477
Info : STM32F103C8Tx.cpu: Cortex-M3 r2p1 processor detected
Info : STM32F103C8Tx.cpu: target has 6 breakpoints, 4 watchpoints
Info : starting gdb server for STM32F103C8Tx.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : accepting 'gdb' connection on tcp/3333
Info : device id = 0x20036410
Info : flash size = 64kbytes
undefined debug reason 8 - target needs reset
O.K.
O.K.:0xE00FFFD0
undefined debug reason 8 - target needs reset
shutdown command invoked
Info : dropped 'gdb' connection
Could not verify STM device!
undefined debug reason 8 - target needs reset
O.K.
O.K.:0xE00FFFD0
Error: Failed to read memory at 0xfffffffe
Error: Failed to read memory at 0xfffffffe
undefined debug reason 8 - target needs reset
shutdown command invoked
Info : dropped 'gdb' connection
Сб мар 26, 2022 23:48:59
Вс мар 27, 2022 00:02:37
Вс мар 27, 2022 00:21:21
Вс мар 27, 2022 00:21:37
Вс мар 27, 2022 00:22:52
Вс мар 27, 2022 00:33:15
Вс мар 27, 2022 00:36:40
Пн мар 28, 2022 10:10:16
Пн мар 28, 2022 14:09:39
Вт мар 29, 2022 02:19:11
$ st-flash write second_led_blink.bin 0x8000000
st-flash 1.6.1
2022-03-29T01:52:14 INFO common.c: F1xx Medium-density: 20 KiB SRAM, 64 KiB flash in at least 1 KiB pages.
file second_led_blink.bin md5 checksum: 4fde16efc5dbad7bba6aec467d8370, stlink checksum: 0x0006997c
2022-03-29T01:52:14 INFO common.c: Attempting to write 4732 (0x127c) bytes to stm32 address: 134217728 (0x8000000)
2022-03-29T01:52:14 INFO common.c: Flash page at addr: 0x08000000 erased
2022-03-29T01:52:14 INFO common.c: Flash page at addr: 0x08000400 erased
2022-03-29T01:52:14 INFO common.c: Flash page at addr: 0x08000800 erased
2022-03-29T01:52:14 INFO common.c: Flash page at addr: 0x08000c00 erased
2022-03-29T01:52:14 INFO common.c: Flash page at addr: 0x08001000 erased
2022-03-29T01:52:14 INFO common.c: Finished erasing 5 pages of 1024 (0x400) bytes
2022-03-29T01:52:14 INFO common.c: Starting Flash write for VL/F0/F3/F1_XL core id
2022-03-29T01:52:14 INFO flash_loader.c: Successfully loaded flash loader in sram
5/5 pages written
2022-03-29T01:52:14 INFO common.c: Starting verification of write complete
2022-03-29T01:52:14 INFO common.c: Flash written and verified! jolly good!
$ st-flash --reset write second_led_blink.bin 0x8000000
st-flash 1.6.1
2022-03-29T01:51:47 INFO common.c: F1xx Medium-density: 20 KiB SRAM, 64 KiB flash in at least 1 KiB pages.
file second_led_blink.bin md5 checksum: 4fde16efc5dbad7bba6aec467d8370, stlink checksum: 0x0006997c
2022-03-29T01:51:47 INFO common.c: Attempting to write 4732 (0x127c) bytes to stm32 address: 134217728 (0x8000000)
2022-03-29T01:51:47 INFO common.c: Flash page at addr: 0x08000000 erased
2022-03-29T01:51:47 INFO common.c: Flash page at addr: 0x08000400 erased
2022-03-29T01:51:47 INFO common.c: Flash page at addr: 0x08000800 erased
2022-03-29T01:51:47 INFO common.c: Flash page at addr: 0x08000c00 erased
2022-03-29T01:51:47 INFO common.c: Flash page at addr: 0x08001000 erased
2022-03-29T01:51:47 INFO common.c: Finished erasing 5 pages of 1024 (0x400) bytes
2022-03-29T01:51:47 INFO common.c: Starting Flash write for VL/F0/F3/F1_XL core id
2022-03-29T01:51:47 INFO flash_loader.c: Successfully loaded flash loader in sram
2022-03-29T01:51:47 ERROR flash_loader.c: flash loader run error
2022-03-29T01:51:47 ERROR common.c: stlink_flash_loader_run(0x8000000) failed! == -1
stlink_fwrite_flash() == -1
Вт мар 29, 2022 10:37:58
Вт мар 29, 2022 11:40:49
Вт мар 29, 2022 11:55:47
Вт мар 29, 2022 12:05:57
Вт мар 29, 2022 12:46:40
xintrea писал(а):И что нужно делать, чтобы прошивать "с этой ногой"?
xintrea писал(а):Мне нужно 72MHz
Martian писал(а):Что касается неродных ST-Link, то под Windows работает без всяких проблем
Вт мар 29, 2022 12:54:54
Вт мар 29, 2022 13:03:21
Martian писал(а):ST-Link на оригинальной отладке определяется без имени
Вт мар 29, 2022 13:08:10
Вт мар 29, 2022 17:56:18