-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ATmega2560 support #4
Comments
Any news on this one? |
Any help in this issue is welcome. |
Most likely im not able to help, but lets see when i have time to try it in 2560. |
I did more testing of avr_boot on ATmega2560:
Defininitions:
I also tried the "with_bootloader" hex file generated by Sketch > Export Compiled Binary with the same results. My suspicion is that with the Note: I have found the proper fix for the issue I was having with using AVRISP mkII and Windows during my original testing in November, 2015 and it was working 100% correctly for this round of testing. |
hello .. i have succeeded with atmega2560 before calling the 0x0000 . you need to clear the EIND register for the extended memory addressing EIND = 0; this was suggested here https://www.mikrocontroller.net/articles/AVR_Bootloader_in_C_-_eine_einfache_Anleitung |
please may you share the working version for a Mega2560 hassin23ayz, I beg you. |
@hassin23ayz Please tell me more how to do this?
|
You must change "main.c" file. diff -r master/main.c atmega2560/main.c
247c247,250
< if (pgm_read_word(0) != 0xFFFF) ((void(*)(void))0)(); //EXIT BOOTLOADER
---
> if (pgm_read_word(0) != 0xFFFF) {
> EIND = 0;
> ((void(*)(void))0)(); //EXIT BOOTLOADER
> } If you need the compiled hex file, please let me know. |
Hi Ferhate I have been fiddling with the SD bootloader for 2560 since yesterday. I may just have gotten it to work a few moments ago. But if you could put up your (assuming you have AS7) version AS7 project with it - I would appreciate and reciprocate when and if my version gets to work - I am sanitizing mine removing the LED and Serial debug. For some reason I had great difficulty getting the assembly file accepted in the project. |
It will be appreciated if one of you can provide compiled hex file for Atmega2560 working bootloader. Also I have an another question, is it possible to flash a program directly Atmega2560 using Bluetooth module (BLE). |
I've forked the repository and created a branch for ATmega2560 support. @litlbigchickn For AS7 project files, please see the following commit: ferhate@8436143 @tech-shubham |
@ferhate |
Hello there! I am able to burn the bootloader but I cannot get it to boot from the SD card, I have put FIRMWARE.BIN on the SD card and I would want to know if there is something else I should be doing. |
You should check the readme file. The common problem is the file system of SD card. The bootloader only supports FAT16/FAT32. |
Hi
I have gotten everything to work just fine. I have made a packet firmware
update system for nrf905 using the information from the bootloader you made
(not much left :-))
Unfortunately it is too long ago to remember what was the problem.
I made it work for arduino and AS7.
Yours sincerely
Nicolai Mathiasen
…On Sat, 14 Oct 2023 at 19:04, Ferhat Elmasgüneş ***@***.***> wrote:
I've forked the repository and created a branch for ATmega2560 support.
https://github.com/ferhate/avr_boot/tree/atmega2560
@litlbigchickn <https://github.com/litlbigchickn> For a working version
for ATmega2560, please see the following commit: ***@***.***
<ferhate@f97d496>
For AS7 project files, please see the following commit: ***@***.***
<ferhate@8436143>
@tech-shubham <https://github.com/tech-shubham> For compiled HEX files,
please see build directory:
https://github.com/ferhate/avr_boot/tree/atmega2560/build
Hello there! I am able to burn the bootloader but I cannot get it to boot
from the SD card, I have put FIRMWARE.BIN on the SD card and I would want
to know if there is something else I should be doing.
You should check the readme file.
https://github.com/zevero/avr_boot#put-your-sketch-on-sd-card
The common problem is the file system of SD card. The bootloader only
supports FAT16/FAT32.
—
Reply to this email directly, view it on GitHub
<#4 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKTRJ73H4XWZNHRYDZSCZ3DX7LA3VAVCNFSM4BTR2P5KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZWGMYDKMBRGY2A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Mvh./B.G.
Universal Safety Systems - Scaffold Division
Senior Engineer
Nicolai Mathiasen
Dir. tel. +45 422-96-224
|
Thanks! it works, but do you think is there a way I can trigger a software reset, jump to bootloader from software, enabling the watchdog timer does not trigger boot from sd. Any help is much appreciated |
We are looking for someone looking deeper into ATmega2560 support!
This is copied from @per1234 in Issue #1
I managed to get the ATmega2560 to load a program from the SD card but it's far from ideal. I discovered the program will run under these circumstances:
After the program has been loaded from the SD no other programs will load from the SD card until the bootloader is burned again. If I change any of the above conditions it doesn't work. With all of these conditions it works consistently. I have no idea what this means, it's a bit more advanced than my current skill level.
The text was updated successfully, but these errors were encountered: