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

Add .non_init RAM #741

Open
ericlangel opened this issue Aug 10, 2022 · 2 comments
Open

Add .non_init RAM #741

ericlangel opened this issue Aug 10, 2022 · 2 comments
Labels

Comments

@ericlangel
Copy link

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.

@brailovskii
Copy link

Could you solve that problem?
I think linker file should be modified by adding non_init section

@ericlangel
Copy link
Author

no i couldnt solve the non_init problem

but i solved my Problem with the Soft reset. So i didnt followed this issue

so for me it is more or less closed
but there is no real solution for the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants