3

If I compile a sketch then upload using ICSP does it overwrite the bootloader?

I am using Arduino program and Arduino Uno as ICSP.

Milliways
  • 1,655
  • 2
  • 18
  • 29

2 Answers2

4

Yes.
When you program using ISP you overwrite everything in the chips flash, even the bootloader.

This has some pro's and con's:

  • Pro: The program starts immediately, meaning it doesn't wait to check if there's any programming coming in before starting your sketch.
  • Con: You need to use ISP to program your Arduino again or to upload the bootloader again.

Normally there is not really any reason for not having the bootloader present but if you are programming bare Atmel chips without a serial interface this way might be preferable.

sa_leinad
  • 3,218
  • 2
  • 23
  • 51
Hans Neve
  • 466
  • 4
  • 11
1

Yes, it will overwrite the bootloader.

In addition to Hans Neve's list of Pros, it has the added benefit of gaining you a couple hundred bytes (0.5KB) that is otherwise used by the bootloader.

sa_leinad
  • 3,218
  • 2
  • 23
  • 51