Skip to content

Warning about clearing of uninitialized global variables on reset #11682

Closed
@brycecherry75

Description

@brycecherry75

When I define global variables with no initial values, they are cleared after initiating a reset with power applied even though a value other than zero has been written to them by the sketch beforehand.
From what I see, this is caused by the Arduino bootloader which in my belief tests the RAM and/or clears its contents on reset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: DocumentationRelated to Arduino's documentation contentType: InvalidOff topic for this repository, or a bug report determined to not actually represent a bugfeature requestA request to make an enhancement (not a bug fix)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions