Coder Social home page Coder Social logo

Comments (6)

MCUdude avatar MCUdude commented on July 29, 2024

I've actually never thought of this. The first releases of MegaCore I used another port of Optiboot, without the "Write to flash" ability. If you want to test the other version of Optiboot, try installing v1.0.1. To be honest I don't know why it faster to start up. As far as I remember the port was a fairly small job. I'm a bit busy at the moment, but if you want to dig deeper into this you can always use a text editor or Github to compare the MegaCore and the MightyCore bootloader!

Quick question. Where did you first hear of MegaCore? Was it Google, or the forums? Just curious 😃

from megacore.

 avatar commented on July 29, 2024

Thanks for the quick reply. I'll compare the two bootloaders.

When I ran out of GPIO on the 324, I looked at the Atmel family, spotted the 64 and googled for it and Arduino. That took me to this page: http://playground.arduino.cc/Main/ArduinoOnOtherAtmelChips

from megacore.

MCUdude avatar MCUdude commented on July 29, 2024

Any updates on this? Maybe our bootloader guru @majekw knows whats going on? 😉

from megacore.

majekw avatar majekw commented on July 29, 2024

My version of Optiboot have enabled 'fast start' feature. It means that bootloader checks for reset cause and if external reset is triggered (by manually pressing reset button or by line change by serial programmer), it waits 2 seconds for code upload. But in almost all other cases (for example normal power on) it skips all bootloader code and instantly starts application.
So, in most cases booting should be instant, without any delay. But you are still able to enter bootloader using external reset.

More info about this feature you could find here: Optiboot/optiboot#140 (comment)

Just curious @hackscribble : how do you measure this 240ms? It's from power-up, from applying reset? Now precise is your measure? I ask because I can't assign this time to anything during bootup. In 'fast mode', there is startup time set by fuses (SUT) which should be about 65ms (by default, @MCUdude: does it also apply to your fuses for Atmega64?) and almost nothing more (only few instructions in bootloader). But triggered by external reset it should be about 2s (enter bootloader and then timeout within it).

from megacore.

 avatar commented on July 29, 2024

@majekw I loaded the board under test with a program that raised an output pin at program start. Then connected an Arduino with a test program that applied and released reset to the board under test, then measured the time until the output was raised. This gave the 240ms figure, which was consistent with what I saw when the board under test had a simple blink program and I watched how long it took between reset and blinking to start. I ran the tests several times and the figure was the same.

I don't that original test board any more, so can't repeat the tests on it. A second board that I have just completed does not show the same symptoms, i.e. the bootloader period is 1.5s and it flashes the LED at the expected rate. So I'm putting it down maybe to a problem with the way I burned the bootloader onto the original board.

from megacore.

alshorin avatar alshorin commented on July 29, 2024

I'm tired of fighting with this file optiboot (original) bootloader and modified it so it was constantly in download mode until you removed the jumper between PD7 and GND.
Insert in file optiboot_flash.c (484) before appStart(ch);
if (PIND & (1<<PIND7))
and you will be happy...

from megacore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.