Closed bryce13950 closed 3 years ago
https://github.com/jandrassy/ArduinoOTA#supported-micro-controllers
Is it completely impossible to make it happen? It has 48kb, which is obviously less, but it’s not substantially less. The program I am trying to flash is going to be 16k, so that should still be enough. I must clarify as well that this issue is not a support issue, but a question on what I would need to change in the library to add compatibility.
you can try it
Any idea on where I need to start in the code?
now there are two implementations of InternalStorage. one for ARM MCU which can write directly to flash memory. for classic AVR there is a separate implementation. I guess the new AVR MCUs like the 4809 can directly write to flash memory so the implementation could go into InternalStorage with ifdefs.
other option is to write a SD bootloader to apply the update over the SD card. I guess it could be made based on existing bootloader for 4809 and one of the SD bootloaders I mention in README.
sorry the ARM way of InternalStorage is not right. it requires a function running in RAM and AVR can't do that
with 48kB flash and 1kB bootloader the sketch size would be limited to 18 kB. an ArduinoOTA example is 13 to 15kB because of the size of networking libraries. that would leave only 3kB flash for the project's code
the SD bootloader way is feasible
Could you reopen this, so that I can find it quicker when I am working through this?
I have just started working through getting this to compile for the SD Bootloader route, and I am running into an issue where the compiler says that SPM_PAGESIZE
is not defined among other things. I have found that this should be defined in avr/io.h, which seems to be defining various values based on the board. Now with the 4809, this value is not defined. I have found some articles that say what the value should be, and I am contemplating simply defining the values if the board is 4809 and if the value is not previously defined. Can you for see any problems with this approach that I may not be thinking of?
I have just started working through getting this to compile for the SD Bootloader route, and I am running into an issue where the compiler says that
SPM_PAGESIZE
is not defined among other things.
in bootloader? how does it the Uno WiFi bootloader?
Could you rephrase your question? I don’t quite understand.
I fixed it. Use the GitHub version
Thanks a ton for your help on this! I really appreciate it. I will give the SD card help, and if I have any issues that seem to be caused by the library I will open a different issue. If I get it to work properly, would you like me to update the readme to reflect that?
Thanks a ton for your help on this! I really appreciate it. I will give the SD card help, and if I have any issues that seem to be caused by the library I will open a different issue. If I get it to work properly, would you like me to update the readme to reflect that?
README has "any board with MCU with SD bootloader" and WiFiNINA is in the list of supported libraries..
Any update on this? I would love this feature, but unfortunately I don't have the technical skills to develop something like this :/
When compiling for the Arduino Uno Wifi Rev 2 I am receiving the following error...
A lot of this seems like it could be a matter of changing names, but I am not entirely sure how in-depth it would be to get it to work on that board. Has there been any work into getting it to work, and could anyone with expertise in this library help guide me on what I might need to do to get it to compile?