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

Skip to content

[STM32U575RGT6]: Verification failed at offset 43008 #1362

@lefebvresam

Description

@lefebvresam

Erasing and programming the chip with the command:

sudo st-flash --freq=4M  erase  0x8000000 0x100000 | sed 's/\r/\n/g'
sudo st-flash --freq=4M --debug write ./cmake_build/HMC20/develop/GCC_ARM/hmc20_test.bin 0x8000000

Gives as output result:

Short version:

sam@elitebook-845:~/git/hmc20_test$ sudo st-flash --freq=4M write ./cmake_build/HMC20/develop/GCC_ARM/hmc20_test.bin 0x8000000
st-flash 1.7.0-352-g8c581c3
2024-01-11T13:29:50 INFO common.c: STM32U575_U585: 786 KiB SRAM, 1024 KiB flash in at least 8 KiB pages.
file ./cmake_build/HMC20/develop/GCC_ARM/hmc20_test.bin md5 checksum: ad8e2a29733bb0f582e4e8c474b66c24, stlink checksum: 0x0049b610
2024-01-11T13:29:50 INFO common_flash.c: Attempting to write 47688 (0xba48) bytes to stm32 address: 134217728 (0x8000000)
2024-01-11T13:29:50 ERROR common_flash.c: Flash programming error: 0x00000080
2024-01-11T13:29:50 WARN common_flash.c: Failed to erase_flash_page(0x8000000) == -1
2024-01-11T13:29:50 ERROR common_flash.c: Failed to erase the flash prior to writing
stlink_fwrite_flash() == -1

Long version:
log.txt

Metadata

Metadata

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions