Skip to content

I need help with Arduino Mega OTA #247

Closed

Description

@heinsschonhals

Hello, I am getting the following feedback when I send a sketch via the network port:

"Connecting to board... done
Uploading sketch...done
Flashing sketch... Error flashing the sketch"

I have already changed the timeout but it may not be correct, as this error message comes in approximately 10 seconds, but the following command is given before this message appears:

"C:\Users\heins\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0/bin/arduinoOTA -address 192.168.3.6 -port 65280 -username arduino -password heins -sketch C:\Users\ heins\AppData\Local\Temp\arduino_build_653848/testeOTA.ino.bin -upload /sketch -b -t 60"

I installed the Megacore bootloader "stk500boot_v2_atmega2560_115200_16000000L.hex", if it's not the correct one, if you could send me the correct bootloader, I've also replaced the arduinoOTA.exe file with version 1.4.1, I think it was in 1.3.0

Activity

  1. JAndrassy commented on May 9, 2024

    @JAndrassy
    Owner

    you need optiboot botloader. not stl500v2

  2. heinsschonhals commented on May 10, 2024

    @heinsschonhals
    Author

    você precisa do botloader optiboot. não stl500v2

    ok, I managed to make sending the sketch to the network port work, but I need to restart the Arduino manually for the new sketch to work, any solution?

  3. heinsschonhals commented on May 10, 2024

    @heinsschonhals
    Author

    em qual arquivo e qual função chama o watchdog, estou procurando isso agora

    copy_flash_pages no bootloader

    I'm using a set of optiboot 8 cards, maybe that's it, but it shouldn't work when I restart manually, right?

  4. heinsschonhals commented on May 10, 2024

    @heinsschonhals
    Author

    I use the following configuration
    optiboot

  5. JAndrassy commented on May 10, 2024

    @JAndrassy
    Owner

    that doesn't have copy_flash_pages. use MegaCore version or my_boards

    btw: the "and after manual reset the new sketch runs?" question was for mcerqueira1509

  6. heinsschonhals commented on May 10, 2024

    @heinsschonhals
    Author

    que não tem copy_flash_pages. use a versão MegaCore ou my_boards

    aliás: o "e após a redefinição manual o novo esboço é executado?" a pergunta era para mcerqueira1509

    I found it in your repository, later I will test it and give feedback here if it works to help more people

    image

  7. heinsschonhals commented on May 10, 2024

    @heinsschonhals
    Author

    Another question, if you have already tested it, sending the sketch outside the local network, through a public IP, would there be a manual way to add the network port to the IDE?

  8. JAndrassy commented on May 10, 2024

    @JAndrassy
    Owner

    yes. read the README

  9. Repository owner deleted a comment from mcerqueira1509 on May 10, 2024
  10. Repository owner deleted a comment from heinsschonhals on May 10, 2024
  11. Repository owner deleted a comment from heinsschonhals on May 10, 2024
  12. Repository owner deleted a comment from heinsschonhals on May 10, 2024
  13. Repository owner deleted a comment from heinsschonhals on May 10, 2024
  14. Repository owner deleted a comment from mcerqueira1509 on May 10, 2024
  15. heinsschonhals commented on May 10, 2024

    @heinsschonhals
    Author

    sim. leia o README

    bingo worked, thank you very much for your help, I will study public IP, this readme from the library folder?

  16. JAndrassy commented on May 10, 2024

    @JAndrassy
    Owner
  17. heinsschonhals commented on May 10, 2024

    @heinsschonhals
    Author

    aqui https://github.com/JAndrassy/ArduinoOTA

    ok in theory this worked, I need to validate it while still outside the same network, I did it with my public IP and it worked, not the first time because instead of pulling the password I have in the sketch, it pulled the default password "password" and then it gave as access denied, even though the dialog box to enter the password is not opened

  18. peno64 commented on Jul 30, 2024

    @peno64

    I must be doing something wrong...

    I have an arduino mega 2560 R3

    I can upload the blink sketch to it and it works with the default bootloader.

    I burned the new bootloader from https://github.com/JAndrassy/my_boards/blob/master/avr/bootloaders/optiboot8/optiboot_atmega2560.hex
    To be able to do this, I copied this file to C:\Users\peno64\AppData\Local\Arduino15\packages\Optiboot\hardware\avr\0.8.0\bootloaders\optiboot
    It says success when I did this.
    I appended the content of https://github.com/JAndrassy/my_boards/blob/master/avr/boards.txt to my boards.txt
    In the IDE I choose board Optiboot 8.0 - Arduino Mega 2560 (Optiboot)
    image
    Now I upload, still via usb, the blink sketch. Upload hangs some time and then gives an error.

    I can burn the default Arduino Mega bootloader again after this and everything is ok again.

    What am I doing wrong?

    Thank you

  19. Repository owner locked and limited conversation to collaborators on Jul 30, 2024
  20. converted this issue into a discussion #255 on Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions