Comments (3)
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.
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.
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)
- [feature] Nucleo-H563ZI Board not recognized HOT 6
- [STM32L4R5ZI]: gdb-multiarch uses wrong osabi
- [STM32L471RG]: STLINKV3 : can't flash the device. Programmer not supported ? HOT 2
- st-util is very slow when stepping through code HOT 2
- [feature] Workflow w/ RAM uploads and SWO
- v1.8.0 is very slow stepping through code HOT 1
- [feature] Adding a graceful way for st-util to exit
- [doc] STM32H573 reports chipid 0x000 HOT 1
- [STLINK-V3-SET]: If the device fails to enter SWD mode, the usb device is not released HOT 4
- [st-trace] Bug in function static bool read_trace( ) HOT 1
- [STM32H753ZIT6]: ERROR common_flash.c: Failed to unlock flash option! HOT 1
- [STM32 F407VET6]: WARN usb.c: skipping ST device: 0x483:0x5720 HOT 2
- STM32G491: Programming flash error, non-erased value (was #1310) HOT 3
- [installation]: Unable to install stlink in ubuntu based devcontainer HOT 1
- [STM32L41x_L42x]: Read option bytes is getting into error unexpectedly
- [NUCLEO-H563ZI]: Cannot program board HOT 2
- [STM32H74x_H75x]: Cannot erase/reprogramm protected flash HOT 1
- Target reset is less reliable on testing branch HOT 8
- st-flash.exe - Application Error (0xc000007b) HOT 2
- [feature] Support for setting option bytes to STM32L41x_L42x
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.