Skip to content

Use EEPROM flag to skip bootloader #13

@per1234

Description

@per1234

Ariadne currently runs the bootloader on every reset. The img_stat EEPROM address is currently used to disable the bootloader timeout so that it will perpetually wait for an upload before running the program. At the start of each upload the bad flag value is written to the address and then the OK flag value is only written to it after successful upload(and currently I think it also verifies the file although that behavior may be removed soon).

The change I propose is that if the img_statEEPROM address is set to the skip flag value in the sketch then on the next reset the bootloader would write the OK value to the address and then immediately time out without waiting for an upload. Define the 3 flag values(OK, bad, and skip) of img_stat in neteeprom.h and these defines will also be available to the user in the copy of that file included in the bundled network configuration library. Add these names to the keywords.txt of that library.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions