STM32F103C8 download error

Generic boards that are not Maple or Maple mini clones, and don't contain the additional USB reset hardware
Post Reply
starjuice
Posts: 1
Joined: Wed Apr 19, 2017 2:49 pm

STM32F103C8 download error

Post by starjuice » Wed Jul 05, 2017 1:53 pm

Hello,

I have 2 blue pill stm32f103c8. I use arduino 1.6.3, 1.6.9 and 1.8.0. I use a USB/serial converter.
I'm able to download some simple and short sketchs like blink, etc. Then it's work, the PC13 led blink properly.
But when I'm trying to download sketch using ili9341 library I have an error message on the both card.

Code: Select all

stm32flash Arduino_STM32_0.9

http://github.com/rogerclarkmelbourne/arduino_stm32

Using Parser : Raw BINARY
Interface serial_posix: 230400 8E1
Version      : 0x22
Option 1     : 0x00
Option 2     : 0x00
Device ID    : 0x0410 (Medium-density)
- RAM        : 20KiB  (512b reserved by bootloader)
- Flash      : 128KiB (sector size: 4x1024)
- Option RAM : 16b
- System RAM : 2KiB
Write to memory
Erasing memory

Wrote address 0x08000100 (1.04%) 
Wrote address 0x08000200 (2.08%) 
Wrote address 0x08000300 (3.12%) 
Wrote address 0x08000400 (4.16%) 
Wrote address 0x08000500 (5.20%) 
Wrote address 0x08000600 (6.23%) 
Wrote address 0x08000700 (7.27%) 
Wrote address 0x08000800 (8.31%) 
Wrote address 0x08000900 (9.35%) 
Wrote address 0x08000a00 (10.39%) 
Wrote address 0x08000b00 (11.43%) 
Wrote address 0x08000c00 (12.47%) 
Wrote address 0x08000d00 (13.51%) 
Wrote address 0x08000e00 (14.55%) 
Wrote address 0x08000f00 (15.59%) 
Wrote address 0x08001000 (16.63%) 
Wrote address 0x08001100 (17.67%) 
Wrote address 0x08001200 (18.70%) 
Wrote address 0x08001300 (19.74%) 
Wrote address 0x08001400 (20.78%) 
Wrote address 0x08001500 (21.82%) 
Wrote address 0x08001600 (22.86%) 
Wrote address 0x08001700 (23.90%) 
Wrote address 0x08001800 (24.94%) 
Wrote address 0x08001900 (25.98%) 
Wrote address 0x08001a00 (27.02%) 
Wrote address 0x08001b00 (28.06%) 
Wrote address 0x08001c00 (29.10%) 
Wrote address 0x08001d00 (30.13%) 
Wrote address 0x08001e00 (31.17%) 
Wrote address 0x08001f00 (32.21%) 
Wrote address 0x08002000 (33.25%) 
Wrote address 0x08002100 (34.29%) 
Wrote address 0x08002200 (35.33%) 
Wrote address 0x08002300 (36.37%) 
Wrote address 0x08002400 (37.41%) 
Wrote address 0x08002500 (38.45%) 
Wrote address 0x08002600 (39.49%) 
Wrote address 0x08002700 (40.53%) 
Wrote address 0x08002800 (41.57%) 
Wrote address 0x08002900 (42.60%) 
Wrote address 0x08002a00 (43.64%) 
Wrote address 0x08002b00 (44.68%) 
Wrote address 0x08002c00 (45.72%) 
Wrote address 0x08002d00 (46.76%) 
Wrote address 0x08002e00 (47.80%) 
Wrote address 0x08002f00 (48.84%) 
Wrote address 0x08003000 (49.88%) 
Wrote address 0x08003100 (50.92%) 
Wrote address 0x08003200 (51.96%) 
Wrote address 0x08003300 (53.00%) 
Wrote address 0x08003400 (54.03%) 
Wrote address 0x08003500 (55.07%) 
Wrote address 0x08003600 (56.11%) 
Wrote address 0x08003700 (57.15%) 
Wrote address 0x08003800 (58.19%) 
Wrote address 0x08003900 (59.23%) 
Wrote address 0x08003a00 (60.27%) 
Wrote address 0x08003b00 (61.31%) 
Wrote address 0x08003c00 (62.35%) 
Wrote address 0x08003d00 (63.39%) 
Wrote address 0x08003e00 (64.43%) 
Wrote address 0x08003f00 (65.47%) 
Wrote address 0x08004000 (66.50%) 
Wrote address 0x08004100 (67.54%) 
Wrote address 0x08004200 (68.58%) 
Wrote address 0x08004300 (69.62%) 
Wrote address 0x08004400 (70.66%) 
Wrote address 0x08004500 (71.70%) 
Wrote address 0x08004600 (72.74%) 
Wrote address 0x08004700 (73.78%) 
Wrote address 0x08004800 (74.82%) Got byte 0x22 instead of ACK
Failed to write memory at address 0x08004c00

Wrote address 0x08004900 (75.86%) 
Wrote address 0x08004a00 (76.90%) 
Wrote address 0x08004b00 (77.93%) 
Wrote address 0x08004c00 (78.97%) 
Une erreur est survenue lors du transfert du croquis
I also try to flash the bootloader on linux.

Code: Select all

jb@jb-GL552VX:~$ sudo stm32flash -w ~/Téléchargements/generic_boot20_pc13.bin -v -g 0x0 /dev/ttyUSB0
stm32flash 0.5

http://stm32flash.sourceforge.net/

Using Parser : Raw BINARY
Interface serial_posix: 57600 8E1
Version      : 0x22
Option 1     : 0x00
Option 2     : 0x00
Device ID    : 0x0410 (STM32F10xxx Medium-density)
- RAM        : 20KiB  (512b reserved by bootloader)
- Flash      : 128KiB (size first sector: 4x1024)
- Option RAM : 16b
- System RAM : 2KiB
Write to memory
Erasing memory
Got byte 0x00 instead of ACK
Unexpected reply from device on command 0x31
Failed to write memory at address 0x08000000
I'm going to be crazy...

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests