Comments (2)
According to one Neil Race there is a suspiciously similar issue with stm32flash: https://sourceforge.net/p/stm32flash/tickets/161/
from stlink.
I did some experiments:
$ stat -c '%s' small.bin big.bin
824
9704
$ st-flash write small.bin 0x08000000
st-flash 1.8.0-2-g65f062f
2024-02-15T17:35:51 INFO common.c: STM32H7Ax_H7Bx: 128 KiB SRAM, 1024 KiB flash in at least 8 KiB pages.
file small.bin md5 checksum: 29eda11138e397cb186819485e13dd2f, stlink checksum: 0x0002c60f
2024-02-15T17:35:51 INFO common_flash.c: Attempting to write 824 (0x338) bytes to stm32 address: 134217728 (0x8000000)
-> Flash page at 0x8000000 erased (size: 0x2000)
2024-02-15T17:35:51 INFO flash_loader.c: Starting Flash write for H7
824/824 bytes written
2024-02-15T17:35:51 INFO common_flash.c: Starting verification of write complete
2024-02-15T17:35:51 INFO common_flash.c: Flash written and verified! jolly good!
$ st-flash write big.bin 0x08000000
...
2024-02-15T17:35:56 ERROR common_flash.c: Verification of flash failed at offset: 6144
$ st-flash write small.bin 0x08002000
...
2024-02-15T17:36:02 ERROR common_flash.c: Verification of flash failed at offset: 0
$ st-flash write big.bin 0x08002000
...
2024-02-15T17:36:25 ERROR common_flash.c: Verification of flash failed at offset: 0
$ st-flash write small.bin 0x08004000
...
2024-02-15T17:50:24 ERROR common_flash.c: Verification of flash failed at offset: 0
$ st-flash write small.bin 0x08006000
...
2024-02-15T17:50:29 INFO common_flash.c: Flash written and verified! jolly good!
$ st-flash write small.bin 0x08100000
st-flash 1.8.0-2-g65f062f
2024-02-15T17:36:40 INFO common.c: STM32H7Ax_H7Bx: 128 KiB SRAM, 1024 KiB flash in at least 8 KiB pages.
Unknown memory region
You can see writing a binary image smaller than 8k(small.bin
) directly to the second page also fails, writing one bigger than page size fails too, everything with the same error.
However writing the small file to the page at 0x08006000
works funnily enough.
I also tried writing to the second bank of flash but it doesn't seem to know about it.
from stlink.
Related Issues (20)
- stlink V3 mini not "usable" [Win7 64bit] HOT 1
- [feature] OTP Read/Write
- stlink-gui: failed to allocate 139988352155568 bytes HOT 1
- ST-LINK-V3MINIE: LIBUSB_ERROR_TIMEOUT only when debugger is powered without connection to target board HOT 2
- STLinkv3: UDEV rules in Debian not matching STLINK-V3MINIE HOT 1
- [STM32G0B1RE / Nucleo G0B1RE]: False chip id reading HOT 2
- [STM32F103] stlink programmers are disappearing after running probing twice. HOT 2
- [STM32U575RGT6]: Verification failed at offset 43008 HOT 9
- [feature] Show all info during full erase HOT 13
- Latest release stlink-1.8.0-win32 doesn't run HOT 8
- Can't build stlink 1.8.0 for Fedora HOT 8
- [feature] Caching and diffing bin/hex HOT 1
- Update on #1357 HOT 1
- [feature] Read/write operations on external SPI Serial Flash Memory HOT 1
- Compiling stlink with Raspberry Pi fails for v1.8.0 HOT 2
- Cmake minimal version mismatch HOT 1
- Debian 11 x64 doesn't work with v1.8.0 because of incompatible glibc HOT 3
- When I build stlink on windows, it says libusb not found HOT 1
- [feature] Just a question .. about next release and ... clones ... HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stlink.