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

LittleFS Conflict with Stored Code? #256

Open
gatordevin opened this issue Aug 4, 2024 · 1 comment
Open

LittleFS Conflict with Stored Code? #256

gatordevin opened this issue Aug 4, 2024 · 1 comment

Comments

@gatordevin
Copy link

Problem with ArduinoOTA Firmware Updates on Pico W

I'm running into an issue with firmware updates. Here's what's going on:
I'm using ArduinoOTA for updates, and I've also got LittleFS in the for storing config stuff. The update process starts fine, downloads the new firmware, but then it stops.
The problem happens right at this part of the code:

void FirmwareUpdater::updateFirmware() {
// ... (earlier parts of the update process)
CopySerial.println("Sketch update apply and reset.");
Serial.flush();
InternalStorage.apply(); // This is where things go sideways
}

When it gets to InternalStorage.apply(), it's supposed to apply the update and reset the board. But... it's not doing that. The board just sits there, no reset, no new firmware.
If I use a simple test script to trigger the update, it works fine. But when I try to update from my main program, no dice.
I'm wondering if maybe LittleFS is causing some kind of conflict? Or maybe there's something about running the update from the main program that's messing things up?
Some extra details:

This is on a RP2040 WIZNet W5100s EVB
I'm using the Arduino framework
LittleFS is used for config storage.
Has anyone run into something like this before? Any ideas on what might be going on or how to troubleshoot it?
Things I'm particularly curious about:

Could LittleFS be interfering with the update somehow?
Is there a known issue with ArduinoOTA and LittleFS on the Pico?
Any special considerations for updating when using both internal storage and LittleFS?
Might running the update from the main program be causing problems?

If you need any more info, just let me know. Thanks for any help you can offer!

@JAndrassy
Copy link
Owner

JAndrassy commented Aug 5, 2024

did you try the Updater library? it is bundled with the core

in the title you write Pico W and in the text a Pico with W5100

# 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

2 participants