Skip to content

Add .non_init RAM #741

Open
Open
@ericlangel

Description

@ericlangel

Is it (already) possible to use variables that are not initialised at softreset?
like:
static uint8_t data[16] attribute((section(".non_init")));
or

So after a power-On Reset the Variable "counter" is random or zero
the counter is increased by application.

after a softreset the variable "counter" should contain the old value before the softreset

Reason: i have an Application running which does a reset from time to time (i think it happens at BLE transfer) and some values should be hold. and i cant writ them in Filesystem, because i dont know the time of the next softreset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions