stlink: st-flash not working after FW-upgrade of STLink-v2

Hi, Unfortunately, STlink Tools not working after firmware upgrade for board ST-LINK/V2. However this board to works fine with STM32CubeIDE.

  • Programmer/board type: stlink /v2-clone
  • Programmer firmware version: V2J37S7
  • Operating system and version: Ubuntu 20.04
  • Stlink tools version: st-flash 1.6.0-301-gd11e6f4
  • Stlink commandline tool name: st-flash, st-util
  • Target chip (and board if applicable): STM32F407VET6
$ st-flash write foo.bin 0x8000000 
st-flash 1.6.0-301-gd11e6f4
2020-05-12T00:20:24 WARN common.c: unknown chip id! 0x5fa0004
Failed to connect to target
$ st-util --verbose=99
st-util
2020-05-12T00:22:26 DEBUG common.c: *** looking up stlink version
2020-05-12T00:22:26 DEBUG common.c: st vid         = 0x0483 (expect 0x0483)
2020-05-12T00:22:26 DEBUG common.c: stlink pid     = 0x3748
2020-05-12T00:22:26 DEBUG common.c: stlink version = 0x2
2020-05-12T00:22:26 DEBUG common.c: jtag version   = 0x25
2020-05-12T00:22:26 DEBUG common.c: swim version   = 0x7
2020-05-12T00:22:26 DEBUG common.c: stlink current mode: debug (jtag or swd)
2020-05-12T00:22:26 DEBUG usb.c: JTAG/SWD freq set to 0
2020-05-12T00:22:26 DEBUG common.c: *** set_swdclk ***
2020-05-12T00:22:26 DEBUG common.c: stlink current mode: debug (jtag or swd)
2020-05-12T00:22:26 DEBUG common.c: *** stlink_jtag_reset ***
2020-05-12T00:22:26 DEBUG common.c: *** stlink_reset ***
2020-05-12T00:22:26 DEBUG common.c: *** stlink_write_debug32 5fa0004 to 0xe000ed0c
2020-05-12T00:22:26 DEBUG common.c: Loading device parameters....
2020-05-12T00:22:26 DEBUG common.c: *** stlink_core_id ***
2020-05-12T00:22:26 DEBUG common.c: core_id = 0x2ba01477
2020-05-12T00:22:26 DEBUG common.c: *** stlink_read_debug32 5fa0004 is 0xe0042000
2020-05-12T00:22:26 WARN common.c: unknown chip id! 0x5fa0004
2020-05-12T00:22:26 DEBUG common.c: *** stlink_reset ***
2020-05-12T00:22:26 DEBUG common.c: *** stlink_write_debug32 5fa0004 to 0xe000ed0c
2020-05-12T00:22:26 DEBUG gdb-server.c: Chip ID is 0x00000004, Core ID is 0x2ba01477.
2020-05-12T00:22:26 INFO gdb-server.c: Listening at *:4242...
^C2020-05-12T00:22:29 DEBUG common.c: *** stlink_run ***
2020-05-12T00:22:29 DEBUG common.c: *** stlink_exit_debug_mode ***
2020-05-12T00:22:29 DEBUG common.c: *** stlink_write_debug32 a05f0000 to 0xe000edf0
2020-05-12T00:22:29 DEBUG common.c: *** stlink_close ***

UPD. Jun 3 2020. 2@nightwalker-87. I answer here, because the thread closed 4 comments. Last update is Programmer firmware version: V2J37S7. I did downgrade firmware V2J36S7 for to work st-flash. Your versions FW V2.J29.S7 and V2.J34.S7 are too old.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 21 (11 by maintainers)

Most upvoted comments