Skip to content

Commit

Permalink
Fix STLink flashing
Browse files Browse the repository at this point in the history
  • Loading branch information
pkendall64 committed Nov 19, 2023
1 parent d8e29b4 commit 6f882ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/stlink.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ class STLink {
this.device = device
} catch (err) {
this.error(err)
throw err
}
if (this.stlink !== null) {
await this.on_successful_attach(this.stlink, this.device)
Expand Down Expand Up @@ -204,7 +205,7 @@ class STLink {
this.log('================')
try {
await this.stlink.halt()
await this.stlink.flash(this.target.flash_start + addr, binary[0])
await this.stlink.flash(this.target.flash_start + addr, binary[0].data)
} catch (err) {
this.error(err)
throw err
Expand Down

0 comments on commit 6f882ed

Please sign in to comment.