-
Notifications
You must be signed in to change notification settings - Fork 2k
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
cpu/stm32: add unused backup RAM as extra heap #18921
Conversation
Should be similar as in cfd0ef4 I guess. So if If someone uses backup RAM, he or she would have to |
No need for that, this comes after the |
ah true I see ... great! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It allocates heap memory in the backup RAM region:
022-11-16 14:34:33,134 # Free 128 Bytes at 0x0x40024008, total 3544
2022-11-16 14:34:33,137 # Free 128 Bytes at 0x0x40024090, total 3408
2022-11-16 14:34:33,142 # Free 128 Bytes at 0x0x40024128, total 3272
2022-11-16 14:34:33,145 # Free 128 Bytes at 0x0x400241c0, total 3136
2022-11-16 14:34:33,149 # Free 128 Bytes at 0x0x40024258, total 3000
2022-11-16 14:34:33,154 # Free 128 Bytes at 0x0x400242f0, total 2864
2022-11-16 14:34:33,156 # Free 128 Bytes at 0x0x40024388, total 2728
2022-11-16 14:34:33,159 # Free 128 Bytes at 0x0x40024420, total 2592
2022-11-16 14:34:33,164 # Free 128 Bytes at 0x0x400244b8, total 2456
2022-11-16 14:34:33,167 # Free 128 Bytes at 0x0x40024550, total 2320
2022-11-16 14:34:33,171 # Free 128 Bytes at 0x0x400245e8, total 2184
2022-11-16 14:34:33,174 # Free 128 Bytes at 0x0x40024680, total 2048
2022-11-16 14:34:33,179 # Free 128 Bytes at 0x0x40024718, total 1912
2022-11-16 14:34:33,182 # Free 128 Bytes at 0x0x400247b0, total 1776
2022-11-16 14:34:33,186 # Free 128 Bytes at 0x0x40024848, total 1640
2022-11-16 14:34:33,190 # Free 128 Bytes at 0x0x400248e0, total 1504
2022-11-16 14:34:33,193 # Free 128 Bytes at 0x0x40024978, total 1368
2022-11-16 14:34:33,198 # Free 128 Bytes at 0x0x40024a10, total 1232
2022-11-16 14:34:33,203 # Free 128 Bytes at 0x0x40024aa8, total 1096
2022-11-16 14:34:33,206 # Free 128 Bytes at 0x0x40024b40, total 960
2022-11-16 14:34:33,208 # Free 128 Bytes at 0x0x40024bd8, total 824
2022-11-16 14:34:33,212 # Free 128 Bytes at 0x0x40024c70, total 688
2022-11-16 14:34:33,218 # Free 128 Bytes at 0x0x40024d08, total 552
2022-11-16 14:34:33,222 # Free 128 Bytes at 0x0x40024da0, total 416
2022-11-16 14:34:33,223 # Free 128 Bytes at 0x0x40024e38, total 280
2022-11-16 14:34:33,226 # Free 128 Bytes at 0x0x40024ed0, total 144
2022-11-16 14:34:33,230 # Free 128 Bytes at 0x0x40024f68, total 8
while the counter in tests/periph_backup_ram
is still retained.
2022-11-16 14:39:33,427 # WARNING: non-backup memory retained - did we really enter deep sleep?
2022-11-16 14:39:33,429 # counter: 4131
2022-11-16 14:39:37,184 # WARNING: non-backup memory retained - did we really enter deep sleep?
2022-11-16 14:39:37,186 # counter: 4132
2022-11-16 14:39:41,128 # WARNING: non-backup memory retained - did we really enter deep sleep?
2022-11-16 14:39:41,130 # counter: 4133
ACK
3acd255
to
6f05dac
Compare
Contribution description
Testing procedure
Run
tests/malloc
on a supported CPUIssues/PRs references
No longer crashes thanks to #18919