Go Down

Topic: ATmega1284P: End to End using 1.0 IDE (Read 76 times) previous topic - next topic

CrossRoads

It resets just fine. I have seen no signs of hanging with the multiple bootload downloads. Its the serial downloads I can't get working.

Hmm, the AVR ISP connects to Reset pin directly.
The FTDI Basic goes thru a cap.
Will try FTDI Basic without the cap.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

CrossRoads

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

CrossRoads

#152
Feb 14, 2012, 04:05 am Last Edit: Feb 14, 2012, 04:08 am by CrossRoads Reason: 1
I am just sooooo frustrated.
I pulled the '328 from my Duemilanove, wired up +5/Gnd/Reset/Tx/Rx to my 1284.
Downloaded this sketch via "Upload Using programmer" & confirmed both Serial ports work.
Code: [Select]

byte pin1 = 4;
byte incomingByte1='a';
byte incomingByte2='b';

void setup(){
 pinMode (pin1, OUTPUT);
 Serial.begin(9600);
 Serial1.begin(9600);
}
void loop(){
 if (Serial.available()>0){
   incomingByte1 = Serial.read();
Serial.write(incomingByte1);
 }
 if (Serial1.available()>0){
   incomingByte2 = Serial1.read();
   Serial1.write(incomingByte2);
 }
digitalWrite(pin1, HIGH);
delay (100);
digitalWrite(pin1, LOW);
delay(100);
}[code]
confirmed both serial ports are working.
Reloaded a bootloader:
[code]
        Programmer Type : usbasp
        Description     : USBasp, http://www.fischl.de/usbasp/

avrdude: auto set sck period (because given equals null)
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9705
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
        To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: auto set sck period (because given equals null)
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: reading input file "C:\Arduino-1.0\hardware\mighty-1284p-slow\bootloaders\optiboot\optiboot_atmega1284p_slow.hex"
avrdude: writing flash (130554 bytes):

Writing | ################################################## | 100% 73.05s

avrdude: 130554 bytes of flash written
avrdude: verifying flash memory against C:\Arduino-1.0\hardware\mighty-1284p-slow\bootloaders\optiboot\optiboot_atmega1284p_slow.hex:
avrdude: load data flash data from input file C:\Arduino-1.0\hardware\mighty-1284p-slow\bootloaders\optiboot\optiboot_atmega1284p_slow.hex:
avrdude: input file C:\Arduino-1.0\hardware\mighty-1284p-slow\bootloaders\optiboot\optiboot_atmega1284p_slow.hex contains 130554 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 70.50s

avrdude: verifying ...
avrdude: 130554 bytes of flash verified
avrdude: reading input file "0x0F"
avrdude: writing lock (1 bytes):

Writing | ################################################## | 100% 0.02s

avrdude: 1 bytes of lock written
avrdude: verifying lock memory against 0x0F:
avrdude: load data lock data from input file 0x0F:
avrdude: input file 0x0F contains 1 bytes
avrdude: reading on-chip lock data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: 1 bytes of lock verified

avrdude done.  Thank you.

And yet I still can't download via the serial port!
Code: [Select]

####avrdude: Send: U [55] . [00] . [01]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
avrdude: Send: d [64] . [01] . [00] F [46] p [70] . [e0] . [0e] . [94] . [b5] . [03] . [08] . [95] . [1f] . [92] . [0f] . [92] . [0f] . [b6] . [0f] . [92] . [11] $ [24] / [2f] . [93] ? [3f] . [93] . [8f] . [93] . [9f] . [93] . [af] . [93] . [bf] . [93] . [80] . [91] . [18] . [01] . [90] . [91] . [19] . [01] . [a0] . [91] . [1a] . [01] . [b0] . [91] . [1b] . [01] 0 [30] . [91] . [1c] . [01] . [01] . [96] . [a1] . [1d] . [b1] . [1d] # [23] / [2f] - [2d] _ [5f] - [2d] 7 [37]   [20] . [f0] - [2d] W [57] . [01] . [96] . [a1] . [1d] . [b1] . [1d]   [20] . [93] . [1c] . [01] . [80] . [93] . [18] . [01] . [90] . [93] . [19] . [01] . [a0] . [93] . [1a] . [01] . [b0] . [93] . [1b] . [01] . [80] . [91] . [14] . [01] . [90] . [91] . [15] . [01] . [a0] . [91] . [16] . [01] . [b0] . [91] . [17] . [01] . [01] . [96] . [a1] . [1d] . [b1] . [1d] . [80] . [93] . [14] . [01] . [90] . [93] . [15] . [01] . [a0] . [93] . [16] . [01] . [b0] . [93] . [17] . [01] . [bf] . [91] . [af] . [91] . [9f] . [91] . [8f] . [91] ? [3f] . [91] / [2f] . [91] . [0f] . [90] . [0f] . [be] . [0f] . [90] . [1f] . [90] . [18] . [95] . [9b] . [01] . [ac] . [01] . [7f] . [b7] . [f8] . [94] . [80] . [91] . [14] . [01] . [90] . [91] . [15] . [01] . [a0] . [91] . [16] . [01] . [b0] . [91] . [17] . [01] f [66] . [b5] . [a8] . [9b] . [05] . [c0] o [6f] ? [3f] . [19] . [f0] . [01] . [96] . [a1] . [1d] . [b1] . [1d] . [7f] . [bf] . [ba] / [2f] . [a9] / [2f] . [98] / [2f] . [88] ' [27] . [86] . [0f] . [91] . [1d] . [a1] . [1d] . [b1] . [1d] b [62] . [e0] . [88] . [0f] . [99] . [1f] . [aa] . [1f] . [bb] . [1f] j [6a] . [95] . [d1] . [f7] . [bc] . [01] - [2d] . [c0] . [ff] . [b7] . [f8] . [94] . [80] . [91] . [14] . [01] . [90] . [91] . [15] . [01] . [a0] . [91] . [16] . [01] . [b0] . [91] . [17] . [01] . [e6] . [b5] . [a8] . [9b] . [05] . [c0] . [ef] ? [3f]   [20]
avrdude: Recv:

avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
avrdude: Send: V [56] @ [40] . [00] . [00] . [0c]   [20]
avrdude: Recv:
avrdude: stk500_cmd(): programmer is out of sync
[/code][/code]
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

retrolefty

Got to be something in the bootloader code or timing problems working with AVRDUDE?

Lefty

CrossRoads

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Go Up