Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Warning about clearing of uninitialized global variables on reset #11682

Closed
Labels
Component: DocumentationRelated to Arduino's documentation content Type: InvalidOff topic for this repository, or a bug report determined to not actually represent a bug feature requestA request to make an enhancement (not a bug fix)
@brycecherry75

Description

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 content Type: InvalidOff topic for this repository, or a bug report determined to not actually represent a bug feature 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

        AltStyle によって変換されたページ (->オリジナル) /