Skip to content
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

(enh) Re-implement optiboot support for 84, 85, maybe 861 #18

Closed
SpenceKonde opened this issue Aug 31, 2015 · 5 comments
Closed

(enh) Re-implement optiboot support for 84, 85, maybe 861 #18

SpenceKonde opened this issue Aug 31, 2015 · 5 comments
Assignees

Comments

@SpenceKonde
Copy link
Owner

Should be able to do 8/12/16 mhz versions with the same binary, running at 19200, 28800 and 38400 respectively.

Edit:167 now tracked in #55.

@SpenceKonde SpenceKonde self-assigned this Aug 31, 2015
@MCUdude
Copy link
Contributor

MCUdude commented Aug 31, 2015

I'd really appreciate this! I don't have any experience with bootloaders loaded on microcontrollers without hardware UART. Does this mean that I don't have to include the soft serial library if I want to send data to the serial monitor?

Anyway, if Optiboot support is added, maybe it's a good idea to include a simple sketch to tune the internal oscillator. My ATtinys where completely off scale when I first got them

@SpenceKonde
Copy link
Owner Author

Yes - you need to use softwareserial to get serial on the ATtiny's without a UART- which as you may be aware (from the forums) is a little flaky.

The readme for the old bootloaders suggests that they can be built with the tuner included (connect @9600 baud after burning bootloader and send a certain character until it says it's done) which you're supposed to use after burning the bootloader, which then writes the new OSCCAL value to flash.

@SpenceKonde SpenceKonde changed the title (enh) Re-implement optiboot support for 84, 85, x7 (enh) Re-implement optiboot support for 84, 85, maybe 861 Apr 26, 2016
@SpenceKonde SpenceKonde added this to the Some Future Version milestone Apr 26, 2016
@MCUdude
Copy link
Contributor

MCUdude commented May 14, 2016

If you're planning on implementing optiboot sometime, have a look at this thread: MCUdude/MightyCore#24
I think this will spice up your core even more!

@SpenceKonde
Copy link
Owner Author

I'm confused as to why you would put hooks into the core to support calling that to write the flash? How is it better than writing the flash from within the sketch? Or are those chips where only the bootloader can write the flash? The ATTiny chips don't have a special bootloader section that code that writes the flash has to be located in, so I think the callouts to the bootloader may not be helpful here?

How much does it add to the size to permit that sort of thing?

@SpenceKonde
Copy link
Owner Author

This issue now handled in #141

@SpenceKonde SpenceKonde removed this from the Some Future Version milestone Apr 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants