If I compile a sketch then upload using ICSP
does it overwrite the bootloader?
I am using Arduino program and Arduino Uno
as ICSP
.
If I compile a sketch then upload using ICSP
does it overwrite the bootloader?
I am using Arduino program and Arduino Uno
as ICSP
.
Yes.
When you program using ISP you overwrite everything in the chips flash, even the bootloader.
This has some pro's and con's:
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.
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.