-
Notifications
You must be signed in to change notification settings - Fork 7.5k
enormous .BSS size while building tests/subsys/fs/nffs_fs_api #12065
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
Comments
I cheated by adding more "virtual RAM" and generated
|
This looks roughly as expected to me. ARM's MPU requires power-of-two sized regions, and the application data in this app looks to me like it wants a little over 176k of space. That needs to be rounded up to a 256k area, and then sit adjacent to a region containing the rest of the kernel, and also to other regions containing stacks (I'm not the expert on how these are laid out). Needless to say, none of that stuff is going to fit when the app alone wants to use the entire SRAM. Assuming I didn't mix up the numbers, this app won't work with userspace on this board as written. It either needs to shrink to fit the constraints of how the MPU works, or just configure out the userspace setting with an appropriate comment explaining the issue. |
Not sure about the userspace stuff as I can't get it to build if I set: CONFIG_TEST_USERSPACE=n However, the test has a lot of memory / ram buffers:
So that's 144K right off the top of SRAM.
|
stuff is getting rounded up to the nearest power of 2 size due to the way the MPU works. |
NFFS tests do not fit in RAM on nRF5x, tweak the configurations so that they do. Fixes: zephyrproject-rtos#12065 Signed-off-by: Carles Cufi <[email protected]>
NFFS tests do not fit in RAM on nRF5x, tweak the configurations so that they do. Fixes: #12065 Signed-off-by: Carles Cufi <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
While building the test suite for nrf52840_pca10056 encountered oversize of SRAM. last logg I've got is
Generally this test used to consume lot of RAM - but oversize by 60 KB is very unlikely for something which previously fit into memory.
To Reproduce
build the test against nrf52840_pca10056 using current master
(I have used 5ea8454)
Additional context
Build without user space memory fit into SRAM - so succeed
CONFIG_TEST_USERSPACE=n
CONFIG_APPLICATION_MEMORY=n
Is this a resolution or just hotfix?
The text was updated successfully, but these errors were encountered: