-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added --flash=n[k][m] command line option to override device model #576
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xor-gate
requested changes
Mar 20, 2017
I also recommend updating the manpage source with a small description about this feature: |
The suggested changes have been added to this request. Thanks, Warren |
Sorry, one more change added to rm old ref to chipid in the flash.c usage display. |
Looks good, finished and ready to go? |
xor-gate
approved these changes
Mar 21, 2017
ping @ve3wwg |
Hi Jerry:
I just assumed you went ahead. Yes, all seems good to me. It will be nice
to have this feature included as standard equipment.
Thanks, Warren
…On Fri, Mar 24, 2017 at 7:28 AM, Jerry Jacobs ***@***.***> wrote:
ping @ve3wwg <https://github.com/ve3wwg>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#576 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADn3-Dq19yoTESYtkCc--iXzBQf4AQUUks5ro6jlgaJpZM4Mh8OX>
.
|
This was
linked to
issues
Mar 31, 2020
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
By default, st-flash works the same as before (there is no more chipid override in this pull request).
Now optionally, you can specify --flash=128k for example, to override the stm32f103c8t6 to assume 128k of flash instead of the default of 64k. This option accepts decimal (128k), octal 0200k, or hex 0x80k. Obviously leaving the multiplier out is equally valid, for example: --flash=0x20000
The size may be followed by an optional "k" or "m" to multiply the given value by 1024 or 1 Meg respectively.
Tests on the stm32f103c8t6 confirm that overriding the flash size is all that is required. I was still able to flash and read 128k without changing the chipid. I don't know if this will be true of all other devices but I suspect that they will.