Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

12
  • This almost solves my problem. However, I did not understand this: "If you have a way how to get the binary of size less then half of the 328p flash, then you can write it to the upper half of the flash and then use my copy_flash_pages function to bootload it.". ATmega328p has 32k flash and binary size is 1k. Commented Oct 21, 2020 at 8:04
  • @MiradilZeynalli, to make the next upload the uploaded code must support the upload. can you make this code so small? Commented Oct 21, 2020 at 8:13
  • Moreover, I mostly would like to solve this with bootloader as my question implies. Because, having binary in flash + program itself + bootloader can have limitations for bigger programs (without using your network library). In my case, I would like to use bootloader max of 1k (I am even planning to delete STK500 support, so I can reduce it to 0.5k). Commented Oct 21, 2020 at 8:13
  • 1
    yes. similar to this example github.com/jandrassy/ArduinoOTA/blob/master/examples/Advanced/… Commented Oct 21, 2020 at 8:18
  • 1
    Everything was working correctly, I was just testing it wrong. As you said, with your library I can store heavier code than EEPROM. I will still use external EEPROM, but still your answer is correct, so I marked it (despite the fact that it has been 6 months) Commented Apr 21, 2021 at 13:11