Pages: [1]   Go Down
Author Topic: Arduino programming with ISP  (Read 369 times)
0 Members and 1 Guest are viewing this topic.
Israel
Offline Offline
Newbie
*
Karma: 0
Posts: 29
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8853
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

> 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.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Switzerland
Offline Offline
Sr. Member
****
Karma: 6
Posts: 375
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Israel
Offline Offline
Newbie
*
Karma: 0
Posts: 29
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you!
Logged

Pages: [1]   Go Up
Jump to: