Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32H755ZI-Q: Flash write fails on second page (0x08100000) #1342

Closed
starkedem opened this issue Oct 14, 2023 · 2 comments · Fixed by #1147
Closed

STM32H755ZI-Q: Flash write fails on second page (0x08100000) #1342

starkedem opened this issue Oct 14, 2023 · 2 comments · Fixed by #1147

Comments

@starkedem
Copy link

  • Programmer/board type: STLINK V3 / NUCLEO-H755ZI-Q
  • Operating system an version:: Win11
  • stlink tools version and/or git commit hash: 1.7.0-314-g40fbdb4
  • stlink commandline tool name: st-flash
  • Target chip (and board, if applicable): NUCLEO-H755ZI-Q

Commandline output:

st-flash --flash=2M --freq=1000k --connect-under-reset --reset --debug write ./Build/firmware.bin 0x08100000
st-flash 1.7.0-314-g40fbdb4
2023-10-13T18:26:28 DEBUG common.c: *** looking up stlink version ***
2023-10-13T18:26:28 DEBUG common.c: st vid         = 0x0483 (expect 0x0483)
2023-10-13T18:26:28 DEBUG common.c: stlink pid     = 0x374e
2023-10-13T18:26:28 DEBUG common.c: stlink version = 0x3
2023-10-13T18:26:28 DEBUG common.c: jtag version   = 0xd
2023-10-13T18:26:28 DEBUG common.c: swim version   = 0x0
2023-10-13T18:26:28 DEBUG common.c: stlink current mode: mass
2023-10-13T18:26:28 DEBUG usb.c: JTAG/SWD freq set to 1000
2023-10-13T18:26:28 DEBUG common.c: *** stlink_enter_swd_mode ***
2023-10-13T18:26:28 DEBUG common.c: *** stlink_jtag_reset 0 ***
2023-10-13T18:26:28 DEBUG common.c: *** stlink_jtag_reset 1 ***
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x02030003 at 0xe000edf0
2023-10-13T18:26:28 DEBUG common.c: *** stlink_soft_reset (halt) ***
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_write_debug32 0xa05f0003 to 0xe000edf0
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_write_debug32 0x01000501 to 0xe000edfc
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_write_debug32 0x00000008 to 0xe000ed30
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x00030003 at 0xe000edf0
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_write_debug32 0x05fa0004 to 0xe000ed0c
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x02010001 at 0xe000edf0
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x02030003 at 0xe000edf0
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x00030003 at 0xe000edf0
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x00000009 at 0xe000ed30
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_write_debug32 0x0000001f to 0xe000ed30
2023-10-13T18:26:28 DEBUG common.c: stlink current mode: debug (jtag or swd)
2023-10-13T18:26:28 DEBUG common.c: Loading device parameters....
2023-10-13T18:26:28 DEBUG common.c: *** stlink_core_id ***
2023-10-13T18:26:28 DEBUG common.c: core_id = 0x6ba02477
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x411fc271 at 0xe000ed00
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x20036450 at 0x5c001000
2023-10-13T18:26:28 DEBUG chipid.c: detected chip_id parameters

2023-10-13T18:26:28 DEBUG chipid.c: # Device Type: STM32H74x_H75x
2023-10-13T18:26:28 DEBUG chipid.c: # Reference Manual: RM0433
2023-10-13T18:26:28 DEBUG chipid.c: #
2023-10-13T18:26:28 DEBUG chipid.c: chip_id 0x450
2023-10-13T18:26:28 DEBUG chipid.c: flash_type 7
2023-10-13T18:26:28 DEBUG chipid.c: flash_size_reg 0x1ff1e880
2023-10-13T18:26:28 DEBUG chipid.c: flash_pagesize 0x20000
2023-10-13T18:26:28 DEBUG chipid.c: sram_size 0x20000
2023-10-13T18:26:28 DEBUG chipid.c: bootrom_base 0x1ff00000
2023-10-13T18:26:28 DEBUG chipid.c: bootrom_size 0x20000
2023-10-13T18:26:28 DEBUG chipid.c: option_base 0x5200201c
2023-10-13T18:26:28 DEBUG chipid.c: option_size 0x2c
2023-10-13T18:26:28 DEBUG chipid.c: flags 3

2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x00000800 at 0x1ff1e880
2023-10-13T18:26:28 INFO common.c: STM32H74x_H75x: 128 KiB SRAM, 2048 KiB flash in at least 128 KiB pages.
2023-10-13T18:26:28 DEBUG common.c: *** stlink_force_debug_mode ***
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x5c001054
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_write_debug32 0x00040000 to 0x5c001054
2023-10-13T18:26:28 DEBUG common.c: *** stlink_status ***
2023-10-13T18:26:28 DEBUG usb.c: core status: 00030003
2023-10-13T18:26:28 DEBUG common.c:   core status: halted
file ./Build/firmware.bin md5 checksum: eb1ad0f9fab3b6a2bf1371dc3225ce, stlink checksum: 0x00016987
2023-10-13T18:26:28 INFO common_flash.c: Attempting to write 1468 (0x5bc) bytes to stm32 address: 135266304 (0x8100000)
2023-10-13T18:26:28 DEBUG common.c: *** stlink_core_id ***
2023-10-13T18:26:28 DEBUG common.c: core_id = 0x6ba02477
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002110
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_write_debug32 0x000e0000 to 0x52002010
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_write_debug32 0x000e0000 to 0x52002110
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x00000031 at 0x5200200c
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_write_debug32 0x45670123 to 0x52002004
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_write_debug32 0xcdef89ab to 0x52002004
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_write_debug32 0x45670123 to 0x52002104
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_write_debug32 0xcdef89ab to 0x52002104
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x00000030 at 0x5200200c
2023-10-13T18:26:28 DEBUG common_flash.c: Successfully unlocked flash
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x00000030 at 0x5200210c
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_write_debug32 0x00000034 to 0x5200210c
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x00000034 at 0x5200210c
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_write_debug32 0x000000b4 to 0x5200210c
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:28 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000005 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00010000 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000030 at 0x5200200c
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_debug32 0x00000031 to 0x5200200c
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00010000 at 0x52002110
-> Flash page at 0x8100000 erased (size: 0x20000)
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x58024538
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_debug32 0000000000 to 0x58024538
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00010000 at 0x52002110
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_debug32 0x000e0000 to 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_debug32 0x000e0000 to 0x52002110
2023-10-13T18:26:29 INFO flash_loader.c: Starting Flash write for H7
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000031 at 0x5200200c
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_debug32 0x45670123 to 0x52002004
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_debug32 0xcdef89ab to 0x52002004
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_debug32 0x45670123 to 0x52002104
2023-10-13T18:26:29 DEBUG usb.c: WRITEDEBUGREG error (0x19)
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_debug32 0xcdef89ab to 0x52002104
2023-10-13T18:26:29 DEBUG usb.c: WRITEDEBUGREG error (0x19)
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000030 at 0x5200200c
2023-10-13T18:26:29 DEBUG common_flash.c: Successfully unlocked flash
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000030 at 0x5200200c
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_debug32 0x00000032 to 0x5200200c
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000035 at 0x5200210c
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_debug32 0x00000037 to 0x5200210c
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000032 at 0x5200200c
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_debug32 0x00000032 to 0x5200200c
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00000035 at 0x5200210c
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_debug32 0x00000035 to 0x5200210c
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x8100000
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
64/1468 bytes written2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x8100040
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
128/1468 bytes written2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x8100080
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
192/1468 bytes written2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x81000c0
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
256/1468 bytes written2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x8100100
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
320/1468 bytes written2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x8100140
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
384/1468 bytes written2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x8100180
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
448/1468 bytes written2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x81001c0
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
512/1468 bytes written2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x8100200
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
576/1468 bytes written2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x8100240
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
640/1468 bytes written2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x8100280
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
704/1468 bytes written2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x81002c0
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
768/1468 bytes written2023-10-13T18:26:29 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x8100300
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
832/1468 bytes written2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x8100340
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
896/1468 bytes written2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x8100380
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
960/1468 bytes written2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x81003c0
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
1024/1468 bytes written2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x8100400
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
1088/1468 bytes written2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x8100440
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
1152/1468 bytes written2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x8100480
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
1216/1468 bytes written2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x81004c0
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
1280/1468 bytes written2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x8100500
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
1344/1468 bytes written2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x8100540
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
1408/1468 bytes written2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_write_mem32 64 bytes to 0x8100580
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
1468/1468 bytes written
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0000000000 at 0x52002010
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0x00050000 at 0x52002110
2023-10-13T18:26:30 ERROR common_flash.c: Flash programming error: 0x00040000
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_debug32  0xffffffff at 0x08100004
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_write_reg
2023-10-13T18:26:30 DEBUG common.c: *** stlink_run ***
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_read_reg
2023-10-13T18:26:30 DEBUG read_write.c:  (16) ***
2023-10-13T18:26:30 DEBUG common.c: data_len = 8 0x8
 80 00 00 00 00 00 00 01
2023-10-13T18:26:30 DEBUG usb.c: r_idx (16) = 0x01000000
stlink_fwrite_flash() == -1
2023-10-13T18:26:30 DEBUG common.c: *** stlink_exit_debug_mode ***
2023-10-13T18:26:30 DEBUG read_write.c: *** stlink_write_debug32 0xa05f0000 to 0xe000edf0
2023-10-13T18:26:30 DEBUG common.c: *** stlink_close ***
make: *** [../rules.mk:103: flash] Error -1

Expected/description:
Unable to load firmware at the 0x08100000 address.

Release version can neither erase or write flash with address greater than 0x08100000. It doesn't return any error, just flash verification fails. If you download the firmware using ST-LINK Utility prior to using st-flash, it doesn't even return verification error, because *.bin file and flash match (no thanks to st-flash).

"Last commit" version can erase sectors after 0x08100000 but can not write anything.

@Nightwalker-87 Nightwalker-87 self-assigned this Oct 15, 2023
@Nightwalker-87
Copy link
Member

Duplicate of #1146.

@Nightwalker-87 Nightwalker-87 added this to To do in Release v1.8.0 via automation Oct 15, 2023
@Nightwalker-87 Nightwalker-87 added this to the v1.8.0 milestone Oct 15, 2023
@Nightwalker-87 Nightwalker-87 moved this from To do to In progress in Release v1.8.0 Oct 15, 2023
@Nightwalker-87 Nightwalker-87 moved this from In progress to Review in progress in Release v1.8.0 Oct 15, 2023
@Nightwalker-87 Nightwalker-87 moved this from Review in progress to Reviewer approved in Release v1.8.0 Oct 15, 2023
@Nightwalker-87
Copy link
Member

This issue has been fixed already.

Release v1.8.0 automation moved this from Reviewer approved to Done Oct 15, 2023
@stlink-org stlink-org locked as resolved and limited conversation to collaborators Oct 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants