Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

SD2Flash2BootAVRHex not working on Arduino Mega ADK (2560) #242

Open
proasnet opened this issue Jan 30, 2024 · 0 comments
Open

SD2Flash2BootAVRHex not working on Arduino Mega ADK (2560) #242

proasnet opened this issue Jan 30, 2024 · 0 comments

Comments

@proasnet
Copy link

proasnet commented Jan 30, 2024

Dear @JAndrassy ,
I am trying example from ArduinoOTA Library SD2Flash2BootAVRHex.ino for update program in Arduino Mega ADK, with Ethernet Shield.

  1. Downloaded your myboard - ok
  2. Files from folder myboard copied to hardware folder of Arduino - ok
  3. Selected Arduino Mega 2560 (Optiboot) - ok
  4. Bootloader loaded to Arduino ADK - ok
  5. Return to select Arduino Mega ADK as board - ok ( is right? )
  6. Upload example sketch - ok
  7. Blink LED example export as hex from Arduino IDE and copy as update.hex to a SD card - ok
  8. To a while loop, I added a Serial.print("."); to see loops of copy
    while (hexFile.available() && !ihex2binError) {
      Serial.print(".");
      int length = hexFile.readBytesUntil('\n', buffer, sizeof(buffer));
      lineNumber++;
      ihex_read_bytes(&ihex, buffer, length);
    }
  1. Example is not working. I see in console periodically
12:50:39.578 -> Initializing SD card...
12:50:39.578 -> Update HEX file found. Performing update...
12:50:39.578 -> 
12:50:39.578 -> .

That see, that only the first loop was executed.
Please help me for run an update.
Thank you

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant