Show Posts
Pages: [1]
1  Using Arduino / Microcontrollers / Re: Arduino ATmega1284p bootloader on: January 24, 2013, 03:31:27 pm
Sorry for my late reply I was busy the last week :-(

Do you have a like for a suitable rc filter? My problem at the moment is, that the FTDI programmer blinks but I get still error messages :-(
2  Using Arduino / Microcontrollers / Re: Arduino ATmega1284p bootloader on: January 14, 2013, 11:57:18 am
Hello,

is there anybody who has another idea whats wrong with my setup?

I appreciate your support!
3  Using Arduino / Microcontrollers / Re: Arduino ATmega1284p bootloader on: January 11, 2013, 05:45:07 pm
I had some time today and built a bootloader shield. To test it I take a brand new 1284P and burn a bootloader on it. This is the log:

Quote
Atmega chip programmer.
Written by Nick Gammon.
Entered programming mode OK.
Signature = 0x1E 0x97 0x05
Processor = ATmega1284P
Flash memory size = 131072 bytes.
LFuse = 0x62
HFuse = 0x99
EFuse = 0xFF
Lock byte = 0xFF
Clock calibration = 0x8D
Bootloader address = 0x1FC00
Bootloader length = 508 bytes.
Type 'V' to verify, or 'G' to program the chip with the bootloader ...
Erasing chip ...
Writing bootloader ...
Committing page starting at 0x1FC00
Committing page starting at 0x1FD00
Written.
Verifying ...
No errors found.
Writing fuses ...
LFuse = 0xFF
HFuse = 0xDE
EFuse = 0xFD
Lock byte = 0xEF
Clock calibration = 0x8D
Done.
Type 'C' when ready to continue with another chip ...

I will post a log with the fuses of the other chip which I am trying to programm later.

By the way this is my bootloader shield: View Image (3,3MB)

I show this because I haven't seen anything similar.

EDIT:

This is the log of the µC we are talking about. Again, thanks for your help.
Quote
Atmega fuse calculator.
Written by Nick Gammon.
Entered programming mode OK.
Signature = 0x1E 0x97 0x05
Processor = ATmega1284P
Flash memory size = 131072
LFuse = 0xFF
HFuse = 0xDE
EFuse = 0xFD
Lock byte = 0xEF
Clock calibration = 0x4F
OCD Enable.............................. [ ]
JTAG Enable............................. [ ]
Enable Serial (ICSP) Programming........ [X]
Watchdog Timer Always On................ [ ]
Preserve EEPROM through chip erase...... [ ]
Boot into bootloader.................... [X]
Divide clock by 8....................... [ ]
Clock output............................ [ ]
Bootloader size: 1024 bytes.
Start-up time: SUT0: [ ]  SUT1: [ ] (see datasheet)
Clock source: low-power crystal.
Brownout detection at: 2.7V.
4  Using Arduino / Microcontrollers / Re: Arduino ATmega1284p bootloader on: January 10, 2013, 05:02:57 pm
For a general sketch, you just go to your sketchbook or the IDE "File > Examples",
and choose something other than ArduinoISP.

I have an simple test sketch with serial data to check that it is working so i dont use a special one I just choose the Optiboot 16MHz as board. I set up the µC how it was mention in the tutorial, upload the optiboot code to the arduino and finally use the serial console to send the command to the arduino uno to burn the bootloader. it returns that this was successful.
5  Using Arduino / Microcontrollers / Re: Arduino ATmega1284p bootloader on: January 10, 2013, 02:49:59 pm
Thanks for the great answers!

I changed the setting in the device manager, just in case to test it. I used this tutorial: http://www.gammon.com.au/forum/?id=11637 and the Serial Monitor said that it was successful. That do I have to choose to download a general sketch?

Yes it is a cheap FTDI version, on the ebay page they said it uses DTR. Thanks for the information that I have to swap TX and RX. Is connection via the cap to the reset pin right for DTR?

6  Using Arduino / Microcontrollers / Re: Arduino ATmega1284p bootloader on: January 09, 2013, 04:07:21 pm
Thank you for the info, I didn't know that RTS and DTR works.

I made a better picture with a higher resoultion and some description: 2,8MB Picture

I have two caps between VCC and GND (AVCC and GND). And there is one cap between Pin 9 (Reset) and DTR. I checked TX and RX, at first it was correct then I swap them so it wasn't correct anymore so know it is the right way but the error message is the same: avrdude: stk500_getsync(): not in sync: resp=0x00
7  Using Arduino / Microcontrollers / Re: Arduino ATmega1284p bootloader on: January 09, 2013, 03:50:37 am
Is there anyone who have an idea what is wrong?
8  Using Arduino / Microcontrollers / Re: Arduino ATmega1284p bootloader on: January 07, 2013, 08:11:06 am
Yes, thats right, I have caps on both sides (0,1µF). On my FTDI there os GND, CTS, VCC TXD RXD and DTR. I thought DTR is the auto reset pin so I connected DTR to Pin 9 with a 0,1µF cap.

This is my FTDI programmer: http://www.ebay.de/itm/230820610037?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649#ht_500wt_1414

Again, thanks a lot for your help!
9  Using Arduino / Microcontrollers / Re: Arduino ATmega1284p bootloader on: January 06, 2013, 04:04:53 pm
Thank youf or your reply.

I swap RX and TX, now I get this error messages:

Quote
avrdude: stk500_program_enable(): protocol error, expect=0x14, resp=0x50
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

Com Port should not be the problem, I have only one (the FTDI). the FTDI is blinking, when I upload a sketch, so this looks right.
10  Using Arduino / Microcontrollers / Re: Arduino ATmega1284p bootloader on: January 06, 2013, 03:05:43 pm
Sorry for the late reply, it took some time to get all the components...

Thank you for the latest link. i was able to flash a bootloader to my 1284p. Now I want to upload some code but it fails.

Here is a picture where you can see my setup:

https://www.dropbox.com/s/llqm0x68c8m4aeo/20130106_205943.jpg

I bought a cheap FTDI programmer but it should do the work. I get this error: avrdude: stk500_getsync(): not in sync: resp=0x00

I selected the Mighty 1284p, 16MHz using Optiboot as board and Arduino as ISP as programmer.

Thank you very much for your help!
11  Using Arduino / Microcontrollers / Arduino ATmega1284p bootloader on: December 15, 2012, 08:14:26 am
Hi,

I ordered the 1284p a few days ago and I would now burn a bootloader to chip. I only have the Arduino Mega 2560 and the Arduino UNO. Is there any good tutorial how to do that? I read a lot about this but nothing really helps...

Thank you very much!

PS: Sorry for my bad english ;-)
Pages: [1]