Go Down

Topic: Arduino programming with ISP (Read 477 times) previous topic - next topic


Couple of questions related to programming Arduino UNO via ISP (e.g.  AVRISP mkII)

  • Is it any danger of writing sketch over boot loader?

  • Should I change "upload.using" in  preferences.txt?


> Is it any danger of writing sketch over boot loader?

I don't think so.  The ATmega328P has a protected memory area just for the bootloader.

> Should I change "upload.using" in  preferences.txt?

No.  Just select "Upload Using Programmer" from the File menu.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e


ISP upload will indeed flatten the bootloader.  When writing to flash by ISP, the programmer first erases the entire chip before uploading the new data.  This differs from self-programming mode used by the bootloader, where the flash is erased one page at a time.

If you want to go back to using serial upload you'll need to reinstate the bootloader first.

PS. it's possible to combine the sketch and bootloader and upload both together, but AFAIK the Arduino IDE doesn't do that.


Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131