-
Notifications
You must be signed in to change notification settings - Fork 105
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
Converting HEX's to the strings in the sketch #6
Comments
I use EMACS, which permits me to define a "keyboard macro" that puts a quote at the beginning of a line, goes to the end of the line and adds "\n" and another quote, and then goes to the beginning of the next line. Repeat the keyboard macro 34 times or so, add some curly brackets and such, and it's all done. |
No longer using the ATMEGA8 and 168, so was hoping to repurpose the space used for those two, and instead add some of the other chips I regularly bootload (ATmega 1284p, 644p, etc) Well, it's an EMACS keyboard macro that I repeat. All it does it put a quote at the start and "\n" quote at the end of each line. ;; Keyboard Macro Editor. Press C-c C-c to finish; press C-x k RET to cancel. Command: last-kbd-macro Macro: " ;; self-insert-command Note that Adafruit has enhanced optiLoader: https://github.com/adafruit/Standalone-Arduino-AVR-ISP-programmer Enjoy |
Thanks for the replies Replaced the array in images_8 with the converted Gen7 1284_20 bootloader hex with "" and \n added as in the examples. Fixed fuse and signature as appropriate. But sketch failed to compile: error: initializer-string for array of chars is too long The Gen7 bootloader is a lot bigger than OptiBoot - so not sure what to do - hardware guy here (; |
The current optiloader loads the entire hex file into RAM before programming it into the target, and it assumes a 512byte bootloader. It would take major modifications to support a 2k bootloader, since that would exceed the amount of RAM present in the chips. I'd suggest that you look at the adafruit or gammon enhancements, since I think this is one of the things that they do. |
Really awesome project!
No longer using the ATMEGA8 and 168, so was hoping to repurpose the space used for those two, and instead add some of the other chips I regularly bootload (ATmega 1284p, 644p, etc)
Can you provide details of converting the hex to string (mentioned a Macro process?)
Peter
The text was updated successfully, but these errors were encountered: