-
I've tested the OTAFromFile.ino example with an RP2040 nano connect board with success. I've tried to use the .uf2 file generated using the 'Sketch/Export compiled Binary' command but that file seems not working. ` void setup() { Serial.println("Writing a OTA image of an .uf2 file renamed as update.bin"); void loop() { The sketch output in the serial monitor is: Rebooting in 5 seconds, should begin blinker instead of this app... But the system hangs and my sketch is not launched. I then presume the fw update went wrong and the cause is the .bin file wrong. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
Use the |
Beta Was this translation helpful? Give feedback.
-
how can I generate a .bin instead of .uf2 ? The Sketch/Export compiler Binary command makes a .uf2 only. |
Beta Was this translation helpful? Give feedback.
-
@stefat You can set it to somewhere that's easier to remember, if you want to. Just edit the build.path line in preferences.txt. Mine currently looks like this: build.path=C:\arduino-output Set that to whatever you want, and create a folder at that location if needed. You should find that line near the top of the file. You can use File->Preferences to locate the preferences file, but edit and save it with Arduino closed, so it doesn't overwrite it when it exits. |
Beta Was this translation helpful? Give feedback.
-
You can also set the config entry for sketch.always_export_binaries=true to get a 'build' directory in your sketch directory with the binaries and map file generated. I use arduino-cli, so I'm not sure where this setting is in the IDE. |
Beta Was this translation helpful? Give feedback.
-
Thanks guys for this info. I was having same problem of using the uf2 as a bin for my ota updates. |
Beta Was this translation helpful? Give feedback.
how can I generate a .bin instead of .uf2 ? The Sketch/Export compiler Binary command makes a .uf2 only.