Giter Club home page Giter Club logo

Comments (2)

ii8 avatar ii8 commented on July 23, 2024

According to one Neil Race there is a suspiciously similar issue with stm32flash: https://sourceforge.net/p/stm32flash/tickets/161/

from stlink.

ii8 avatar ii8 commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.