Pages: [1]   Go Down
Author Topic: A 328 to program another 328  (Read 1624 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Italy
Offline Offline
Brattain Member
*****
Karma: 313
Posts: 21607
Logic is my way
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Forgotting for a while Arduino, can I use a stand-alone Atmega328 to program another stand-alone Atmega328?

Strange question, isn't it?  smiley-grin
If I have 1 Atmega328 on a board with an ICSP conn, if I connect to it another board, can I program the first Atmega using only a uC?
Maybe using RX/TX or I2C, I don't know....
Logged


SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 106
Posts: 6364
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sure.  Load ArduinoISP into the "programmer" 328, and it will program the "target" 328 just fine.
There's no reason that a "stand alone 328" can't run Arduino Sketches.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Guys, I was wondering something similar. Id like to burn Arduino sketches directly from an arduino-as-AVRISP to an unbootloaded 328 using the ISP connectors. Do I need to change the preferences.txt file to read:

upload.using = atmega328

or is this handled by the arduinoISP program installed on the programmer?
Logged

Glasgow, scotland
Offline Offline
Newbie
*
Karma: 4
Posts: 42
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

in preferences.txt,

upload.using = arduinoisp

will do the trick
Logged

Pages: [1]   Go Up
Jump to: