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

NRF52840_DK - Operator new[] out of memory #9

Open
j3hill opened this issue Dec 6, 2018 · 19 comments
Open

NRF52840_DK - Operator new[] out of memory #9

j3hill opened this issue Dec 6, 2018 · 19 comments

Comments

@j3hill
Copy link

j3hill commented Dec 6, 2018

This example builds with storage type TDB_EXTERNAL without errors, but reboots in a loop due to a fatal error ("Operator new[] out of memory") when run.
Example version: mbed-os-5.11.0-rc2 - d9625811c9193ac3ab36a969bab93e28dac03776
OS: Windows 10
Compiler: GCC_ARM
Board: NRF52840_DK

Test output:

--- Mbed OS KVStore static API example ---
kv_reset
kv_reset -> 271
kv_set first dummy key
kv_set -> 271
kv_get_info of first key
kv_get_info -> 271
kv_get_info key: /kv/dummy_key1
kv_get_info info - size: 1879048192, flags: 536889856
kv_get first key


++ MbedOS Error Info ++
Error Status: 0x8001011F Code: 287 Module: 1
Error Message: Operator new[] out of memory

Location: 0x352C1
Error Value: 0x70000001
Current Thread: main  Id: 0x2000577C Entry: 0x35829 StackSize: 0x1000 StackMem: 0x200057C0 SP: 0x200066A8
For more info, visit: https://armmbed.github.io/mbedos-error/?error=0x8001011F
-- MbedOS Error Info --

== The system has been rebooted due to a fatal error. ==
@adbridge
Copy link
Contributor

adbridge commented Dec 7, 2018

@dannybenor @offirko please take a look

@dannybenor
Copy link

I think I added a comment here. It works only on targets that have spif component as explained in the Readme. K64f

@adbridge
Copy link
Contributor

adbridge commented Dec 7, 2018

@dannybenor Even if that is the case , surely we should not be getting fatal errors?! Unsupported features/targets should fail during compilation with a suitable warning / error ? cc @ARMmbed/mbed-os-core

@deepikabhavnani
Copy link

make sure the target.json for the target includes the "components": ["FLASHIAP"] and device_has": ["FLASH"] or add this section to the example mbed_app.json.

Even if that is the case , surely we should not be getting fatal errors?

Please add #error in example if DEVICE_FLASHIAP and DEVICE_FLASH are not set. Error with proper message and explanation is except able

@deepikabhavnani
Copy link

deepikabhavnani commented Dec 7, 2018

https://github.com/ARMmbed/mbed-os/blob/0283bb84e469c75ebf8ded601312332ac099c633/features/storage/kvstore/mbed_lib.json

KVStore disables feature for few targets and tests check for #if !KVSTORE_ENABLED. Same can be done for example, after setting enabled: false for this target.

@ciarmcom
Copy link
Member

@j3hill thank you for raising this issue.Please take a look at the following comments:

Could you add some more detail to the description? A good description should be at least 25 words.
What target(s) are you using?
What toolchain(s) are you using?
What version of Mbed OS are you using (tag or sha)?
It would help if you could also specify the versions of any tools you are using?
How can we reproduce your issue?

NOTE: If there are fields which are not applicable then please just add 'n/a' or 'None'.This indicates to us that at least all the fields have been considered.
Please update the issue header with the missing information, the issue will not be mirroredto our internal defect tracking system or investigated until this has been fully resolved.

@ciarmcom
Copy link
Member

@j3hill it has been 5 days since the last reminder. Could you please update the issue header as previously requested?

11 similar comments
@ciarmcom
Copy link
Member

@j3hill it has been 5 days since the last reminder. Could you please update the issue header as previously requested?

@ciarmcom
Copy link
Member

@j3hill it has been 5 days since the last reminder. Could you please update the issue header as previously requested?

@ciarmcom
Copy link
Member

ciarmcom commented Nov 4, 2020

@j3hill it has been 5 days since the last reminder. Could you please update the issue header as previously requested?

@ciarmcom
Copy link
Member

ciarmcom commented Nov 9, 2020

@j3hill it has been 5 days since the last reminder. Could you please update the issue header as previously requested?

@ciarmcom
Copy link
Member

@j3hill it has been 5 days since the last reminder. Could you please update the issue header as previously requested?

@ciarmcom
Copy link
Member

@j3hill it has been 5 days since the last reminder. Could you please update the issue header as previously requested?

@ciarmcom
Copy link
Member

@j3hill it has been 5 days since the last reminder. Could you please update the issue header as previously requested?

@ciarmcom
Copy link
Member

@j3hill it has been 5 days since the last reminder. Could you please update the issue header as previously requested?

@ciarmcom
Copy link
Member

ciarmcom commented Dec 5, 2020

@j3hill it has been 5 days since the last reminder. Could you please update the issue header as previously requested?

@ciarmcom
Copy link
Member

@j3hill it has been 5 days since the last reminder. Could you please update the issue header as previously requested?

@ciarmcom
Copy link
Member

@j3hill it has been 5 days since the last reminder. Could you please update the issue header as previously requested?

@ciarmcom
Copy link
Member

Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers.
Internal Jira reference: https://jira.arm.com/browse/IOTOSM-3104

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

No branches or pull requests

5 participants