Skip to content

Use esp reboot counter to downlod a valid fw after 3 reboot - #530

Open
giulcioffi wants to merge 11 commits into
arduino:masterfrom
giulcioffi:SNU
Open

giulcioffi wants to merge 11 commits into
arduino:masterfrom
giulcioffi:SNU

Conversation

@giulcioffi

Copy link
Copy Markdown
Contributor

This is based on the PR #512 and linked to the reboot counter in nina-fw (arduino/nina-fw#47).

In case we are trying to flash an invalid fw, a reboot is triggered. Whenever a reboot is done, the counter stored in the file "bootcounter.bin" is incremented. This patch introduces a check on the NiNaBoot side: after 3 consecutive reboots, a valid fw is downloaded from a suggested URL.

The WiFi credentials in Usage.ino need to be set to working ones, as well as the URL in NiNaBoot.ino from which the binary of the new fw must be downloaded.

Once a valid fw is downloaded and the continuous rebooting is stopped, the file containing the reboot counter is erased.

facchinm and others added 11 commits June 15, 2020 17:56
… maximum size which is available for the SNU second stage bootloader. In case of the MKR VIDOR 4000 the necessary FPGA bitstream is injected in the binary image above the usable flash of the MCU by the build system. When using the SNU for the MKR VIDOR 4000 we have to rely on the bitstream being already in place (not a unrealistic assumption, given that the SNU is compiled into a complete Vidor binary + fpga application).
@giulcioffi
giulcioffi requested review from aentinger and facchinm June 15, 2020 16:25
@CLAassistant

CLAassistant commented Apr 9, 2021

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 3 committers have signed the CLA.

✅ facchinm
❌ aentinger
❌ giulcioffi
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

4 participants