2016-02-28 08:17 AM
I have a problem with programming the new STM32F103C8t6 controllers. The st-flash saw the flash size: 25616KiB.
The full console message:2016-02-28T16:53:24 INFO src/stlink-common.c: Loading device parameters....
2016-02-28T16:53:24 INFO src/stlink-common.c: Device connected is: F1 Medium-density device, id 0x20036410
2016-02-28T16:53:24 INFO src/stlink-common.c: SRAM size: 0x5000 bytes (20 KiB), Flash: 0x1904000 bytes (25616 KiB) in pages of 1024 bytes
2016-02-28T16:53:24 INFO src/stlink-common.c: Attempting to write 29448 (0x7308) bytes to stm32 address: 134217728 (0x8000000)
Flash page at addr: 0x08000000 erased
Flash page at addr: 0x08000400 erased
Flash page at addr: 0x08000800 erased
Flash page at addr: 0x08000c00 erased
Flash page at addr: 0x08001000 erased
Flash page at addr: 0x08001400 erased
Flash page at addr: 0x08001800 erased
Flash page at addr: 0x08001c00 erased
Flash page at addr: 0x08002000 erased
Flash page at addr: 0x08002400 erased
Flash page at addr: 0x08002800 erased
Flash page at addr: 0x08002c00 erased
Flash page at addr: 0x08003000 erased
Flash page at addr: 0x08003400 erased
Flash page at addr: 0x08003800 erased
Flash page at addr: 0x08003c00 erased
Flash page at addr: 0x08004000 erased
Flash page at addr: 0x08004400 erased
Flash page at addr: 0x08004800 erased
Flash page at addr: 0x08004c00 erased
Flash page at addr: 0x08005000 erased
Flash page at addr: 0x08005400 erased
Flash page at addr: 0x08005800 erased
Flash page at addr: 0x08005c00 erased
Flash page at addr: 0x08006000 erased
Flash page at addr: 0x08006400 erased
Flash page at addr: 0x08006800 erased
Flash page at addr: 0x08006c00 erased
Flash page at addr: 0x08007000 erased2016-02-28T16:53:24 INFO src/stlink-common.c: Finished erasing 29 pages of 1024 (0x400) bytes
2016-02-28T16:53:24 INFO src/stlink-common.c: Starting Flash write for VL/F0/F3 core id
2016-02-28T16:53:24 INFO src/stlink-common.c: Successfully loaded flash loader in sram
2016-02-28T16:53:28 ERROR src/stlink-common.c: flash loader run error
2016-02-28T16:53:28 ERROR src/stlink-common.c: run_flash_loader(0x8000000) failed! == -1
stlink_fwrite_flash() == -1
Please help me, I don't know, what's the problem...
THX
2016-02-28 10:16 AM
This isn't an ST tool, suggest you converse with the developer, or related mailing lists.
Is this a custom board? Does anything else work on it? For example the ST-LINK Utilities? Do other boards work? Please provide some additional context, not just the throws of failure.