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

nRF51822 Heap Size change from 2048 to 1024

Dear Sir,

What is effect, if I change the Heap Size from 2048 to 1024 in arm_startup_nrf51.s file?

On my project, my device (nrf51822) connect iphone with ANCS, sometime I find the device nothing response, I am worried the problem is caused by change Heap Size to 1024.

Thanks & kind regards kwan

Parents
  • Hi Kwan,

    You can add a breakpoint in app_error_handler() so that if there is an assertion occurs, you will have the program stop at the handler, and you can find the cause of the assertion by looking at the error code, line and filename.

    Could you explain what did you mean by "Software Device use RAM"? If it is the application RAM usage, you can find how much RAM used by each file by looking at the .map file generated in _build folder. Please look for "Execution Region RW_IRAM1" table.

    If it's about the Softdevice, it's 8KB RAM used by softdevice, and 2KB for the call stack. So 6KB RAM's left for the application.

Reply
  • Hi Kwan,

    You can add a breakpoint in app_error_handler() so that if there is an assertion occurs, you will have the program stop at the handler, and you can find the cause of the assertion by looking at the error code, line and filename.

    Could you explain what did you mean by "Software Device use RAM"? If it is the application RAM usage, you can find how much RAM used by each file by looking at the .map file generated in _build folder. Please look for "Execution Region RW_IRAM1" table.

    If it's about the Softdevice, it's 8KB RAM used by softdevice, and 2KB for the call stack. So 6KB RAM's left for the application.

Children
No Data
Related