Go Down

Topic: Trouble burning bootloader to Atmega2561 (Read 6662 times) previous topic - next topic

CrossRoads

Ok, getting closer. Used the 2561_hex from the old thread,   but that pins_arduino.h has too many compile errors for missing ports. Using the one I edited compiles ok, but times out starting the serial transfer. Maybe a speed setting problem ...
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.

john1993

to save space signatures are hard coded into the bootloaders during compile time
bootloader does not read the signature from the chip when requested - instead, the signature is hardcoded. I'd assume it was to save space
Déjà vu :)

CrossRoads

#32
Feb 21, 2016, 06:43 am Last Edit: Feb 21, 2016, 06:44 am by CrossRoads
Success!
This combination seems to work: pins_arduino.h and the 2561 hex from the other thread, which I couldn't attach.
Code: [Select]

mega2561.name=Arduino Mega 2561
mega2561.upload.protocol=wiring
mega2561.upload.maximum_size=258048
mega2561.upload.speed=115200
mega2561.bootloader.low_fuses=0xFF
mega2561.bootloader.high_fuses=0xD8
mega2561.bootloader.extended_fuses=0xFD
mega2561.bootloader.path=stk500v2
mega2561.bootloader.file=stk500boot_v2_m2561_16mhz.hex
mega2561.bootloader.unlock_bits=0x3F
mega2561.bootloader.lock_bits=0x0F
mega2561.build.mcu=atmega2561
mega2561.build.f_cpu=16000000L
mega2561.build.core=arduino
mega2561.build.variant=mega2561

 

Here's "blink" to you! Thanks for the help LarryD & john1993.
https://youtu.be/PiD6ZxRAAGk
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.

strykeroz

I'm delighted to see a result in such a short time for you Bob, but also glad I followed this thread.  I've learned a heap from your experience, words and links, thanks Geoff
"There is no problem so bad you can't make it worse" - retired astronaut Chris Hadfield

larryd

#34
Feb 21, 2016, 06:53 am Last Edit: Feb 21, 2016, 06:53 am by LarryD


No technical PMs.
If you are asked a question, please respond with an answer.
If you are asked for more information, please supply it.
If you need clarification, ask for help.

CrossRoads

I always liked George Peppard.  More so as Banacek vs the A-Team tho.
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.

Jayson_Intal

Hi!  can you please  post a link to the  atmega 2561 profile you had use in able to bootload your arduino 2561 ( hex files etc.). please?. It would be very helpful 'cause I have 20 pcs. of 2561 in my spare box I want to use it also to arduino ide. please, please I need help.

CrossRoads

Boards.txt entry is in reply #32, and the .hex file is posted in one the replies as well. The key to success is that the SPI pins are not the ICSP pins as they are on many other chips (328, 1284, 2560).
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.

Jayson_Intal

Update: I got my 2561 bootloaded. I use the pins_arduino.h you edited in this thread and bootloader from avr developers.
though i have some error during the bootloading process, i can still download the sample blink sketch to my circuit.
I 've noticed it took 10 to 12 sec. before it start my program.

thanks so much CrossRoads! :)

CrossRoads

Did you try with
mega2561.bootloader.file=stk500boot_v2_m2561_16mhz.hex
from reply #28?
If I remember, I can post my copy of that when I get home tonight if it turns out to be different. Certainly doesn't 10-12 second to start the program,
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.

Jayson_Intal

#40
Jun 10, 2016, 09:32 am Last Edit: Jun 10, 2016, 09:55 am by Jayson_Intal
No because when I try to click and download that, it's just on txt file.  Do I need to convert that txt file to hex or just simply copy that  inside the stk500v2 bootloader folder?I will try that on my day off.

Thanks again!

CrossRoads

When I right-click and select Save Target As, I get the .hex file downloaded. You don't get the same?
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.

Jayson_Intal

This is what I got when I select Save Target As

stk500boot_v2_mega2561.hex.txt

CrossRoads

Rename it and drop the .txt part.
You can use Notepad++ and view the file, just looks like this (first several lines):
Code: [Select]


:020000023000CC

:10E000000D947FF10D94A8F10D94A8F10D94A8F151

:10E010000D94A8F10D94A8F10D94A8F10D94A8F118

:10E020000D94A8F10D94A8F10D94A8F10D94A8F108

:10E030000D94A8F10D94A8F10D94A8F10D94A8F1F8

:10E040000D94A8F10D94A8F10D94A8F10D94A8F1E8

:10E050000D94A8F10D94A8F10D94A8F10D94A8F1D8

:10E060000D94A8F10D94A8F10D94A8F10D94A8F1C8

 
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.

Jayson_Intal

Ok, finally I  got the hex file.

thanks CrossRoads!

Go Up