Skip to content
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

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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

giulcioffi
Copy link
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).
@CLAassistant
Copy link

CLAassistant commented Apr 9, 2021

CLA assistant check
All committers have signed the CLA.

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