Thanks to visit codestin.com
Credit goes to github.com

Skip to content

STM32F103C8T6 using St-link v2 doesn't flash on Ubuntu (works properly on windows) #1024

@marcosQuesada

Description

@marcosQuesada

Thank you for giving feedback to the stlink project.

NOTICE: Please read and follow instructions in #906 before submitting a ticket. This feature request will be deleted without notice when not enough information is provided! So please ensure that all fields are filled out.

  • I made serious effort to avoid creating duplicate or nearly similar issue

In order to allow developers and other contributors to isolate and target your respective issue, please take some time to fill out each of the following items appropriate to your specific problem:

  • Programmer/board type: st-link v2
  • Operating system and version: Linux (Ubuntu 20.04)
  • Stlink tools version and/or git commit hash: v1.6.1, v.1.6.0, v.1.5.1
  • Stlink commandline tool name: st-flash
  • Target chip (and board if applicable): STM32F103C8T6

Futher we kindly ask you to describe the detected problem as detailed as possible and to add debug output if available, by using the following template:

Commandline-Output:

st-flash --reset write /home/marcos/code/stm32/stm32f103vc-tempalte/main.bin 0x08000000

st-flash 1.6.0
2020-09-07T15:38:53 INFO common.c: Loading device parameters....
2020-09-07T15:38:53 INFO common.c: Device connected is: F1 Medium-density device, id 0x20000410
2020-09-07T15:38:53 INFO common.c: SRAM size: 0x5000 bytes (20 KiB), Flash: 0 bytes (0 KiB) in pages of 1024 bytes
Unknown memory region

st-flash --format=ihex write /home/marcos/code/stm32/stm32f103vc-tempalte/main.hex

st-flash 1.6.0
2020-09-07T15:38:53 INFO common.c: Loading device parameters....
2020-09-07T15:38:53 INFO common.c: Device connected is: F1 Medium-density device, id 0x20000410
2020-09-07T15:38:53 INFO common.c: SRAM size: 0x5000 bytes (20 KiB), Flash: 0 bytes (0 KiB) in pages of 1024 bytes
Unknown memory region

Expected/description:

I reviewed all issues related to this "Unknown memory region", many of them point to a bad cable connection between st-link and bluepill (SCLK SDIO), but, i tested everything on windows 10 too, and i am able to flash successfully, so connection must be fine.

Everything else seems to be well recognized, as:

 st-info --probe  

Found 1 stlink programmers
 serial: 371a0b002c135737334d4e00
openocd: "\x37\x1a\x0b\x00\x2c\x13\x57\x37\x33\x4d\x4e\x00"
  flash: 0 (pagesize: 1024)
   sram: 20480
 chipid: 0x0410
  descr: F1 Medium-density device

Maybe is my fault, but i don't know what else to do, i even installed everything from scratch in a different ubuntu machine (18.04) with same results.

Thank you for your support.

The stlink project maintainers

Metadata

Metadata

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions