Skip to content

INITIAL: support OTA on Nano RP2040 Connect #256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 37 commits into from
Jun 7, 2021
Merged

INITIAL: support OTA on Nano RP2040 Connect #256

merged 37 commits into from
Jun 7, 2021

Conversation

facchinm
Copy link
Contributor

@facchinm facchinm commented May 20, 2021

Needs this patch over mbed core.

@codecov-commenter
Copy link

codecov-commenter commented May 20, 2021

Codecov Report

Merging #256 (cd04eef) into master (eed539b) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #256   +/-   ##
=======================================
  Coverage   95.15%   95.15%           
=======================================
  Files          24       24           
  Lines         867      867           
=======================================
  Hits          825      825           
  Misses         42       42           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8afff8c...cd04eef. Read the comment docs.

@arduino-libraries arduino-libraries deleted a comment from github-actions bot May 31, 2021
@arduino-libraries arduino-libraries deleted a comment from github-actions bot May 31, 2021
aentinger added 13 commits May 31, 2021 07:14
In the current implementation if the OTA process fails (no reset) then the thread started to kick the watchdog timer would run forever. This does defeat the purpose of the watchdog which is only supposed to be kicked within ArduinoIoTCloud.update(). It should be enough to strategically sprinkle watchdog calls throughout the code.
In the early days of OTA development the SFU was used to perform a application update using a binary stored on an external SPI flash. However, this method was discarded, because it would have required for the users to purchase a MKR MEM shield additionally to their connected board. Therefore it is safe to remove the manual SFU defines from above which prevents any name collissions with the (unfortunately nambed) Nano RP2040 Connect SFU.
…herwise we might loop forever in case no data becomes available any more.
… has never been completed and may need a complete overhaul, mofe SFU into nano specific OTA module.
@aentinger aentinger marked this pull request as ready for review June 1, 2021 07:31
@arduino-libraries arduino-libraries deleted a comment from github-actions bot Jun 1, 2021
@arduino-libraries arduino-libraries deleted a comment from github-actions bot Jun 1, 2021
aentinger added 2 commits June 2, 2021 09:15
…it might happen that the connection has been terminated by the server, although not all available data has been read from the NINA.
…t makes sense to feed the watchdog within the main-loop body since the timeout will terminate the loop anyway.
@CLAassistant
Copy link

CLAassistant commented Jun 4, 2021

CLA assistant check
All committers have signed the CLA.

@aentinger aentinger merged commit d09c6dc into master Jun 7, 2021
@aentinger aentinger deleted the rp2040_ota branch June 7, 2021 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants