Comments (6)
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.
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.
Any updates on this? Maybe our bootloader guru @majekw knows whats going on? 😉
from megacore.
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.
@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.
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)
- ATmega 128 I2C doesn't work HOT 2
- Incorrect clock timing HOT 1
- How to wake up from sleep using WDT reset? (atmega64) HOT 3
- arduino framework does'nt work on ATmega128 HOT 2
- Trouble uploading sketch to Arduino Mega2560 after burning bootloader HOT 1
- unable to burn bootloader for mega2560 HOT 40
- stk500v2 bootloader potential issues HOT 4
- To adopt urboot for MegaCore HOT 2
- Is it possible to program with FT232 programming? Is there a schematic drawing available? HOT 5
- Customizable LED_BUILTIN HOT 4
- Arduino Mega OTEthernet not working HOT 6
- generation of the file .hex HOT 11
- cannot be compiled when using the Wire library HOT 5
- Cannot upload sketch to mega without bootloader using arduinoISP HOT 5
- Original Mega 2560 bootloader HOT 4
- Doesn't work on arduino mega 2560 (clone) HOT 2
- ArduinoOTA problems on Mega2560 using Megacore >= 3 HOT 2
- Erase bootloader
- Support for multiple UARTs at same time?
- ATmega64a serial upload problem HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from megacore.