Go Down

Topic: atmega1284p/pu (Read 13772 times) previous topic - next topic

Tom Carpenter

If you have an arduino Uno, can I make the suggestion that you put a wire between the Reset pin and Gnd of the power header. Then connect the TX pin (D1) to the TX1 of the atmega1284, and the RX pin (D0) to RX1 of the atmega1284.
That should allow you to remove your RS232 converter from the possible list of problems by using the converter built into the arduino board.


after all it's working  XD. the problem wor with max232. i have made ft232rl circuit and now it works. im using optiboot but it's using rx0 and tx0, weird. anyway i wanna thank for your help. it shouldn't be done without you, thanks.


I've been using the atmega1284 without issue (you like I did got the atmega1284-PU, not the atmega1284P-PU - Note that the PU specifies a DIP package and is nothing to do with the device).

All I had to do is to find the definition for ATmega1284P (just using CTRL-F), and change the signature to:

    signature        = 0x1e 0x97 0x06;

Then I used the IDE to burn a version of optiboot bootloader compiled for the mega1284p

Then once the bootloader was burned I changed the signature back to:
    signature        = 0x1e 0x97 0x05;

It works a treat for me.

If you let me know what clock frequency you plan to use, I will compile an optiboot hex file for you. Note that the version I modified uses UART1 for programming.

Hi Tom, please please please could you help me with getting this bootloader onto my Atmega1284P-PU chips, i have 2 of them also and have been trying my very very best to figure out how to do this for the last 2 weeks but after failure after failure i really could do with your help!

I have the Atmega1284P-PU microcontroller, i had downloaded loads of different hex files, optiboot files and now im so confused, lost and disheartened by all these failures of mine.

Ive been using the Arduino as ISP sketch uploaded to a Breadboard RBBB and trying to burn any Sanguino-Type bootloader onto the Atmega1284P-PU with absolutely no results, please could you put out a quick step by step list of what needs to be done in order to burn a bootloader to this microcontroller, i really feel like ive lost the war over here, please please could you help. a Great-Many thanks in advance,

kindest regards,

Anil Sethi Jnr
Si Vis Pacem, Para bellum
   Publius Flavius Vegetius Renatus's


Try this bootloader, should allow serial downloads on Serial 0 afterwards.

It's the one I put on my cards when I build one up with a '1284P; for example, installing bootloader from Atmek AVR ISP MKii with FTDI 5V Basic providing power, and then downloading a sketch.

Here's the boards.txt entry that goes with it
Code: [Select]


This pins_arduino.h file goes in the arduino-1.0.x/hardware/mighty-1284p/variants/bobuino  folder.
Should already be there if you've installed the mighty1284 files that maniacbug put together
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.


!!! DUDE !!!

Thank you so very very Very VERY MUCH !!!!!

Honestly speaking, i think i was about to break down and cry my eyes-out, lol !!!

Got the mighty-1284p bootloader with 16 Mhz crystal bootloaded and got the blink sketch blinking away and uploaded the sketch via TX0/RX0 (UART 0) !!!

8) Your an absolute LEGEND !!!! !!!! !!!!  8)

Ive burned a good load of Atmega328P-PU's so kinda knew what i was doing but this Atmega1284 is a whole new type of animal, lol !

I really cant thank you enough ~ !!!
Si Vis Pacem, Para bellum
   Publius Flavius Vegetius Renatus's


Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Go Up