This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF52832 can not use 64K RAM

hi all: Recently, I develop with nrf52832, the softdevice is nRF52_SDK_0.9.0_0c82e3e. In my application, I need a big buffer, so 32K ram can not satisfied. As the errata of nrff52832, the link as follows: infocenter.nordicsemi.com/index.jsp
infocenter.nordicsemi.com/index.jsp When I modify the IDE options, the application break down in the sd_ble_uuid_vs_add() function, the error is NRF_ERROR_INVALID_ADDR. How can I fix this problem??

thanks a lot!

Parents
  • I have this problem too. I've ported a driver for an accelerometer and it needs more than the 32kb which is the default allowance (well, minus 0x2800 bytes for the SD) in the linker file for GCC.

    If I just have the application use the second 32kb then the app complains when initialising the SD.

    How do I modify the linker for GCC to allow for two RAM regions?

    SEARCH_DIR(.)
    GROUP(-lgcc -lc -lnosys)
    
    MEMORY
    {
      FLASH (rx) : ORIGIN = 0x1f000, LENGTH = 0x61000
      RAM (rwx) :  ORIGIN = 0x20002800, LENGTH = 0x5800
    }
    
    INCLUDE "nrf5x_common.ld"
    

    Without the bug I'd just set the length longer (to allow for 64k) but at the moment I'm a bit stuck on how to achieve this..

Reply
  • I have this problem too. I've ported a driver for an accelerometer and it needs more than the 32kb which is the default allowance (well, minus 0x2800 bytes for the SD) in the linker file for GCC.

    If I just have the application use the second 32kb then the app complains when initialising the SD.

    How do I modify the linker for GCC to allow for two RAM regions?

    SEARCH_DIR(.)
    GROUP(-lgcc -lc -lnosys)
    
    MEMORY
    {
      FLASH (rx) : ORIGIN = 0x1f000, LENGTH = 0x61000
      RAM (rwx) :  ORIGIN = 0x20002800, LENGTH = 0x5800
    }
    
    INCLUDE "nrf5x_common.ld"
    

    Without the bug I'd just set the length longer (to allow for 64k) but at the moment I'm a bit stuck on how to achieve this..

Children
No Data
Related