Giter Site home page Giter Site logo

can't write to flash about stlink HOT 3 CLOSED

stlink-org avatar stlink-org commented on May 5, 2024
can't write to flash

from stlink.

Comments (3)

karlp avatar karlp commented on May 5, 2024

rgrover, what is the target board? I suspect you're targetting an F1 board, using a stlinkv2 hardware? I'm pretty sure that's broken in recent texane master builds. Could you please try https://github.com/karlp/stlink/tree/libwork2 ?

It's a work in progress to get them all working together again neatly.

from stlink.

rgrover avatar rgrover commented on May 5, 2024

Karl,

I got the following from your build: :)


2011-11-15T08:46:56 DEBUG src/stlink-common.c: Finished writing block 66
2011-11-15T08:46:56 INFO src/stlink-common.c: Writing flash block 67 of size 64 (0x40)
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_read_mem32 ***
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_write_mem32 4 bytes to 0x40022004
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_write_mem32 4 bytes to 0x40022004
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_read_mem32 ***
2011-11-15T08:46:56 INFO src/stlink-common.c: Successfully unlocked flash
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_write_mem32 4 bytes to 0x40022010
2011-11-15T08:46:56 DEBUG src/stlink-common.c: Running flash loader, write address:0x80010c0, size: 60
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_write_mem8 ***
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_write_reg
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_write_reg
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_write_reg
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_write_reg
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_write_reg
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_run ***
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_status ***
2011-11-15T08:46:56 DEBUG src/stlink-common.c:   core status: running
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_status ***
2011-11-15T08:46:56 DEBUG src/stlink-common.c:   core status: running
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_status ***
2011-11-15T08:46:56 DEBUG src/stlink-common.c:   core status: running
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_status ***
2011-11-15T08:46:56 DEBUG src/stlink-common.c:   core status: halted
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_read_reg
2011-11-15T08:46:56 DEBUG src/stlink-common.c:  (2) ***
2011-11-15T08:46:56 DEBUG src/stlink-usb.c: r_idx ( 2) = 0x00000000
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_read_mem32 ***
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_write_mem32 4 bytes to 0x40022010
2011-11-15T08:46:56 DEBUG src/stlink-common.c: Finished writing block 67
2011-11-15T08:46:56 INFO src/stlink-common.c: Starting verification of write complete
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_read_mem32 ***
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_read_mem32 ***
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_read_mem32 ***
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_read_mem32 ***
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_read_mem32 ***
2011-11-15T08:46:56 INFO src/stlink-common.c: Flash written and verified! jolly good!
2011-11-15T08:46:56 DEBUG src/stlink-common.c: *** stlink_close ***

:) This looks very promising.
I'll update when I get confirmation that the flashed bits work on the target. Thanks!

from stlink.

karlp avatar karlp commented on May 5, 2024

That code you tested has now been merged into mainline master, I'm closing this for now, as multiple people had the same issue as you before hand, and have it working now.

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.