I am using Atmega328. I have an application that requires the Atmega328 to boot up as fast as possible. Currently, I measure that there is a delay of about 1.8secs before the MCU starts running code inside loop(). Will taking away the bootloader reduce boot-up time? If yes, has anyone tried what is the time-savings?
I measure that there is a delay of about 1.8secs before the MCU starts running code inside loop(). Will taking away the bootloader reduce boot-up time? If yes, has anyone tried what is the time-savings?
1.8 seconds?
The chip gets under way depending on the fuses but it is something like 65 mS. You just have to change the fuses to turn off the BOOTRST fuse and it will go straight to the main code.
The current bootloader should run for about 1s after a RESET, and start the sketch nearly immediately after a power-on. (not counting the 65ms oscillator startup.) That's leaving about 0.7s unaccounted for...
Thank you for your tests. Most helpful. Unlike your more precise measurement, I relied on eye observation using an LED. 1.8secs was the time between letting go of the reset button and the LED turning on.