Go Down

Topic: Arduino Bootloaders for Atmega164, Atmega324, Atmega644 and Atmega1284 ? (Read 16755 times) previous topic - next topic

Megaionstorm

Read this:
http://sanguino.cc/breadboardsanguino

under serial !
Mein Arduino Projekte Blog:
http://ardu-megatank.blogspot.de/

Megaionstorm

You can use a arduino without a atmega on it to transfer the sketch to the atmega644.

You must connect rx from the arduino board with the tx from the atmega644.
The tx from arduino to atmega644 rx.

Then select sanguino W/atmega644p under boards before you try to transfer the sketch !
Mein Arduino Projekte Blog:
http://ardu-megatank.blogspot.de/

rokatz123

oh, good, thanks for that!
I'm going to try this out this evening and reply with the results tomorrow!
Robert

rokatz123

So, I tried to flash a sketch via arduino board without atmega and a TXRX connection to the powered 644.
Still no chance to transfer, 'not in sync'.
I fear, the bootlaoder for the 644 and 644p does not work with a 20AU chip.
Has anybody further ideas?
Robert

WanaGo


Megaionstorm

As i have tried it in the past i had used a 16Mhz crystal with the Amtega644.
Mein Arduino Projekte Blog:
http://ardu-megatank.blogspot.de/

rokatz123

Hello,
I also use a 16 MHZ crystal, same as I successfully use with a Atmega 328.
I could flash the sanguino bootloaders 644 and 644p without errors before. Flashing a sketch still doesn't work. To make sure that flashing via RXTX works, I flashed a 328 on a breadboard with 5V, Reset, RX, TX and ground connected. The 644 on a seperate pcb was connected exactly the same with 16MHZ crystal. I checked the pcb certain times and found no mistakes. As I said before, flashing bootloaders works properly.

I'll purchase a 644 20 PU tomorrow, to check weather bootloader and sketches run on it. This will let me know if the bootloader is not suitable for a 44 pin 20 AU.

If anybody had further idas, i'd apreciate.

Robert

Megaionstorm

Could it be the Atmega644 must be resetet short before the sketch transmission ?
Mein Arduino Projekte Blog:
http://ardu-megatank.blogspot.de/

rokatz123

may be. Can this be done manually by pressing reset button with reset pins of arduino and 644 connected together?

Megaionstorm

Mein Arduino Projekte Blog:
http://ardu-megatank.blogspot.de/

rokatz123

cheers, eventually it works! Simply pressing reset starts sketch transmission! Thank you so much!

A first test with serial interface worked at 115kBaud. The next tests concentrate on finding all IO-Ports.

Robert

rokatz123

Hello again,

I have tried to flash the bootloader on a second 644 after the first worked properly. I used this method: http://www.geocities.co.jp/arduino_diecimila/bootloader/index_en.html

This worked well with the first 644 but not with a new raw one. The chip is soldered on a board like "breadboardsanguino" with a 16MHZ crystal. Reading the fuses of the new chip was no problem in slow mode (-B 4800). In fast mode I go an RC-1 error. Erasing worked fine as well. After setting the fuses to highfuse=DC, lowfuse=FF and extendedfuse=FD, I was no longer able to read the fuses again (error RC-1). A new crystal could not solve the problem.

My questions are:
* why is fast mode not working anymore although it worked with the first 644?
* Is the cable length from the Arduino board to the pcb crucial? (is about 25cm long)
* why can I not get trough after setting fuses for sanguino?

thx!
Robert

skyjumper


Hello again,

I have tried to flash the bootloader on a second 644 after the first worked properly. I used this method: http://www.geocities.co.jp/arduino_diecimila/bootloader/index_en.html

This worked well with the first 644 but not with a new raw one. The chip is soldered on a board like "breadboardsanguino" with a 16MHZ crystal. Reading the fuses of the new chip was no problem in slow mode (-B 4800). In fast mode I go an RC-1 error. Erasing worked fine as well. After setting the fuses to highfuse=DC, lowfuse=FF and extendedfuse=FD, I was no longer able to read the fuses again (error RC-1). A new crystal could not solve the problem.

My questions are:
* why is fast mode not working anymore although it worked with the first 644?
* Is the cable length from the Arduino board to the pcb crucial? (is about 25cm long)
* why can I not get trough after setting fuses for sanguino?

thx!
Robert


I just noticed this thread. I am having very similar issues. I read in the docs for the AVR Studio and somewhere else that with a brand new chip, you have the the speed very slowly, I think to 112 KHz.

A 25cm cable should be fine.

As for the fuses, I don't know.

rokatz123

yes, a brand new chip has to be adressed slowly. after erasing, transfer rate can be increased.
i'm confused, because it already worked with the same setup.



Go Up