8
33
Fork
You've already forked blackmagic
23

Feature: flashstub for RP2040 Flashing #1609

Merged
vesim987 merged 9 commits from rp2040-flashstub into main 2024年02月02日 02:15:29 +01:00
vesim987 commented 2023年08月23日 22:22:25 +02:00 (Migrated from github.com)
Copy link

Detailed description

This PR addresses the Flash write speed problem on the RP2040 by moving a pile of the logic into a RAM stub executed on device. With this PR the speed via BMDA over BMP goes from 220B/s to 1KB/s in the first generation of stub (0a1a384), and then all the way to 12KB/s in the second and final generation of the stub.

Your checklist for this pull request

  • I've read the Code of Conduct
  • I've read the guidelines for contributing to this repository
  • It builds for hardware native (make PROBE_HOST=native)
  • It builds as BMDA (make PROBE_HOST=hosted)
  • I've tested it to the best of my ability
  • My commit messages provide a useful short description of what the commits do

Closing issues

## Detailed description This PR addresses the Flash write speed problem on the RP2040 by moving a pile of the logic into a RAM stub executed on device. With this PR the speed via BMDA over BMP goes from 220B/s to 1KB/s in the first generation of stub (0a1a384), and then all the way to 12KB/s in the second and final generation of the stub. ## Your checklist for this pull request * [x] I've read the [Code of Conduct](https://github.com/blackmagic-debug/blackmagic/blob/main/CODE_OF_CONDUCT.md) * [x] I've read the [guidelines for contributing](https://github.com/blackmagic-debug/blackmagic/blob/main/CONTRIBUTING.md) to this repository * [x] It builds for hardware native (`make PROBE_HOST=native`) * [x] It builds as BMDA (`make PROBE_HOST=hosted`) * [x] I've tested it to the best of my ability * [x] My commit messages provide a useful short description of what the commits do ## Closing issues <!-- put "fixes #XXXX" here to auto-close the issue(s) that your PR fixes (if any). -->

Of the approaches here and in #1611, we think this one shows the most promise. If it's ok with you, we'd like to pick this up and sort out the lint issues, update the branch and try and get this to a completion point where we can benchmark it and potentially then merge it. Please let us know if this is ok with you?

Of the approaches here and in #1611, we think this one shows the most promise. If it's ok with you, we'd like to pick this up and sort out the lint issues, update the branch and try and get this to a completion point where we can benchmark it and potentially then merge it. Please let us know if this is ok with you?

Given your lack of answer for the last month, we're going to assume this is notionally ok with you and press on in the next week or two. Please let us know if you have any objections to this.

Given your lack of answer for the last month, we're going to assume this is notionally ok with you and press on in the next week or two. Please let us know if you have any objections to this.
esden (Migrated from github.com) approved these changes 2024年02月02日 02:13:47 +01:00
esden (Migrated from github.com) left a comment
Copy link

LGTM

LGTM
Sign in to join this conversation.
No reviewers
Labels
Clear labels
BMD App
Black Magic Debug App (aka. PC hosted) (not firmware)
BMP Firmware
Black Magic Probe Firmware (not PC hosted software)
Bug
Confirmed bug
Build system
Build system
Can't reproduce
Maintainers can't reproduce this problem
CI
Continuous Integration System
Contribution wanted
User contributions welcome
Documentation
Project documentation
Draft
Work in progress draft
Duplicate
This issue or pull request already exists
Enhancement
General project improvement
Feedback wanted
Requires additional submitter feedback
Foreign Host Board
Non Native hardware to runing Black Magic firmware on
GDB
Issue/PR related to GDB
Good first issue
Good for newcommers
HwIssue Mitigation
Solving or mitigating a Hardware issue in Software
Information Needed
Maintainers need more information
NativeHardware
Official Black Magic Debug Hardware
New Host Board
New hardware to run Black Magic firmware on
New Target
New debug target
Off Topic
Something that does not involve the project in any way
Potential Bug
A potential, unconfirmed or very special circumstance bug
Regression
Bug caused by a regression
User Interest Needed
More user interest required before consideration
User Testing Needed
Looking for user testing reports
Won't fix
Outside of the project scope or works as intended
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
blackmagic-debug/blackmagic!1609
Reference in a new issue
blackmagic-debug/blackmagic
No description provided.
Delete branch "rp2040-flashstub"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?