Go Down

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

pito


baselsw

#466
Aug 10, 2012, 01:19 am Last Edit: Aug 10, 2012, 01:39 am by baselsw Reason: 1

I wonder if there is some issue with the ftdi and (perhaps) your host software.  HW flowcontrol being enabled, or something.
Which FTDI board are you using?  I doesn't seem to match any of the Arduino, Sparkfun, or Adafruit boards.



I have two FTDI boards. One is the "official" Arduino USB Light adapter (http://arduino.cc/en/Main/USBSerial) and Sparkfuns ftdi basic break out board (https://www.sparkfun.com/products/718).. It should work, i've tried everything (I think). And both boards give the same error. Sparkfuns FTDI give the same error at the same place in avrdude. But the arduino usb light gives of random errors.

Edit: The CTS on my FTDI board wasn't connected. I guess because I thought that it isn't important. I tried connecting it to ground and that resulted with an getsync error. But if I put a capacitor (100nF) between CTS and ground then the upload goes further to eventually go to some error again.  I'm using DTR to reset the board. Do I have to do something with the RTS and CTS line. Because putting a capacitor on CTS made the upload go further but it eventually ended with an error! Can I do something about this?

westfw

Try connecting CTS and DSR to DTR ("before" the cap that goes to the arduino reset pin.)

I can't quite tell whether your sparkfun board (the one in your picture) is (un)jumpered for 3.3V or not?  If it is set for 5V, did you remember to connect vccio to +5 instead?

baselsw

Progress everyone =P!!! I tried grounding the RTS line with a 100nF capacitor in between! And guess what?? the process went as far as beginning to flash the blink sketch!! But stopped in the middle of the sending with the programmer is out of sync error:

Code: [Select]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
         AVR Part                      : ATMEGA1284P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    10   128    0 no       4096    8      0  9000  9000 0xff 0xff
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash         65    10   256    0 yes    131072  256    512  4500  4500 0xff 0xff
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
avrdude: Send: A [41] . [80]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [03]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [81]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [04]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [82]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [05]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [98]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [03]
avrdude: Recv: . [10]
         Hardware Version: 3
         Firmware Version: 4.5
avrdude: Send: A [41] . [84]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [03]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [85]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [03]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [86]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [03]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [87]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [03]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [89]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [03]
avrdude: Recv: . [10]
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: Send: A [41] . [81]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [04]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [82]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [05]
avrdude: Recv: . [10]
avrdude: Send: B [42] . [82] . [00] . [00] . [01] . [01] . [01] . [01] . [03] . [ff] . [ff] . [ff] . [ff] . [01] . [00] . [10] . [00] . [00] . [02] . [00] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
avrdude: Send: E [45] . [05] . [08] . [d7] . [a0] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
avrdude: Send: P [50]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
avrdude: AVR device initialized and ready to accept instructions

Reading | avrdude: Send: u [75]   [20]
avrdude: Recv: . [14] . [1e] . [97] . [05] . [10]
################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9705
avrdude: Send: V [56] . [a0] . [0f] . [fc] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: V [56] . [a0] . [0f] . [fd] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: V [56] . [a0] . [0f] . [fe] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: V [56] . [a0] . [0f] . [ff] . [00]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: reading input file "C:\Users\Basel\AppData\Local\Temp\build7393332655608101916.tmp\Blink.cpp.hex"
avrdude: writing flash (1196 bytes):

Writing | avrdude: Send: U [55] . [00] . [00]   [20]
avrdude: Recv:
avrdude: stk500_loadaddr(): (a) protocol error, expect=0x14, resp=0x55
avrdude: Send: d [64] . [01] . [00] F [46] . [0c] . [94] . [85] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [c4] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [0c] . [94] . [a5] . [00] . [00] . [00] ! [21] . [00] $ [24] . [00] ' [27] . [00] * [2a] . [00] . [00] . [00] " [22] . [00] % [25] . [00] ( [28] . [00] + [2b] . [00] . [00] . [00]   [20] . [00] # [23] . [00] & [26] . [00] ) [29] . [00] . [02] . [02] . [02] . [02] . [02] . [02] . [02] . [02] . [04] . [04] . [04] . [04] . [04] . [04] . [04] . [04] . [03] . [03] . [03] . [03] . [03] . [03] . [03] . [03] . [01] . [01] . [01] . [01] . [01] . [01] . [01] . [01] . [01] . [02] . [04] . [08] . [10]   [20] @ [40] . [80] . [01] . [02] . [04] . [08] . [10]   [20] @ [40] . [80] . [01] . [02] . [04] . [08] . [10]   [20] @ [40] . [80] . [01] . [02] . [04] . [08] . [10]   [20] @ [40] . [80] . [00] . [00] . [00] . [01] . [02] . [00] . [08] . [09] . [00] . [00] . [00] . [00] . [04] . [03] . [07] . [06] . [00] . [00] . [00] . [00] . [00] . [00]   [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


baselsw


Try connecting CTS and DSR to DTR ("before" the cap that goes to the arduino reset pin.)

I can't quite tell whether your sparkfun board (the one in your picture) is (un)jumpered for 3.3V or not?  If it is set for 5V, did you remember to connect vccio to +5 instead?


While you were writing this message I was holding in the soldering iron and de-soldering that jumper Looll =P!! Ya, 5V is connected to VCCIO! I'll come back with the results of ur suggestion =P Thx

Go Up