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

RAM Start & End Problem (S140) #21

Open
ebachaalany opened this issue Oct 14, 2020 · 3 comments
Open

RAM Start & End Problem (S140) #21

ebachaalany opened this issue Oct 14, 2020 · 3 comments

Comments

@ebachaalany
Copy link

Hello Bjorn,
Thanks for this useful tutorial.
We are working on an application with motion control based on nRF52840 (S140).
I have implemented your example / tutorial and modified the RAM start 0x20002220 and the size to 0xDDE0 however I am still getting the FATAL ERROR message related to the memory allocation.
Any thoughts about that?
Thanks,
Elias

@bjornspock
Copy link
Contributor

Can you check which RAM start address the sd_ble_enable call in nrf_sdh_ble_enable() i nrf_sdh_ble.c returns in the p_app_ram_start variable ?

You can also try to change the memory settings in the example to the following:
FLASH_PH_START=0x0

FLASH_PH_SIZE=0x100000

RAM_PH_START=0x20000000

RAM_PH_SIZE=0x40000

FLASH_START=0x26000

FLASH_SIZE=0xda000

RAM_START=0x20002210

RAM_SIZE=0x3ddf0

@ebachaalany
Copy link
Author

Hello Bjorn,

Regarding the p_app_ram_start value is 0x3DDA0

Below the ralted LOG:
app_timer: RTC: initialized.
nrf_sdh_ble: p_app_ram_start = 0x3DDA0.
nrf_sdh_ble: Insufficient RAM allocated for the SoftDevice.
nrf_sdh_ble: Change the RAM start location from 0x20002260 to 0x20002270.
nrf_sdh_ble: Maximum RAM size for application is 0x3DD90.
nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.
app: Fatal error
app: System reset

As for the Memory settings provided, we received the following error while downloading:

Screenshot 2020-10-22 125928

I am using currently the 52840 DK and this is the link to the app based on your tutorial.
(https://we.tl/t-KCOLFuXM65)

And this is the Case ID: 258138 at DEvZone

Thanks!

@rs872
Copy link

rs872 commented Dec 12, 2020

This is late so you might have resolved this but I had a similar error, did you try the suggestion the log output? And did it work?
nrf_sdh_ble: Change the RAM start location from 0x20002260 to 0x20002270.

I did this through the same linker setting we used to update RAM after defining a new vendor service and it worked for me.

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

No branches or pull requests

3 participants