-
Notifications
You must be signed in to change notification settings - Fork 145
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
Have Avrdude figure out the end address in terminal write mode #1319
Comments
Sounds like a good enhancement. Just wondering if we can have a new Eg:
|
That's certainly possible, but IMO only adds "synthetic sugar" and doesn't bring any new functionality. @stefanrueger do you have any thoughts or comments on the potential new feature, or should I just create a PR and see what happens? EDIT: another nice thing this would bring us is that it would be trivial to enhance the
|
The erase function is nice. Hopefully it works for different type of AVRs without erasing other menory types. Initial tests show the results are good. |
Yes, I think this is a good addition to terminal "toolbox". Since it just calls |
I am late to the party. I find the syntax with double ellipses confusing. Could we use negative numbers like in python or perl's substring operations?
Tip for implementation: First check and memorise whether the addr/len string starts with a minus; then eat up the |
BTW, I would use the same syntax for the |
I don't find the double ellipsis confusing (probably because I came up with it), but negative numbers are way more versatile than a single I'll have a look at how I can implement this tonight. It probably shouldn't be too difficult, but I'd have to add this to both the dump and write commands. But are you OK with the extended erase command @stefanrueger? |
This comment was marked as duplicate.
This comment was marked as duplicate.
We should (try to) be backwards compatible. The ellipsis has three meanings: in the read addr ... command it stands for memory end. In read ... it stands for all memory. Then in write the ellipsis denotes padding. I would extended the notion of Doing so will give |
Just to be clear, yes I think the extended erase command is cool. When I wrote |
Currently, there's no way to tell Avrdude that I want to write from a start address to the end of the specified memory when using the
...
ellipsis to fill the specified memory. Currently, you'll have to manually calculate how many bytes there are left in the memory (by looking in the datasheet for that particular AVR). And if you're not writing from start address 0, you'll have to subtract the start address from the total number of bytes the memory has in order to fill the entire memory.Maybe the ellipsis
...
or asterisk symbol*
can be used for this?Below are a few examples for the ATmega1284P, which has 4096 bytes of EEPROM.
Any thoughts?
The text was updated successfully, but these errors were encountered: