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

what is the reason to cpu goes to arm_startup_nrf51?

hi what is all the reason for nrf to go to arm_startup_nrf51

image description

can it be for stack size or heap size? what value should i put for them?

Parents
  • It needs to set up the stack and heap size, vector table and define all the handlers (interrupt handlers, reset handler, hardfault handler etc).

    You need to set the stack and heap size so that you avoid overflow. SDK does not use heap (like malloc). For example the stack and heap size in the ble_app_template project in SDK 11 is set to 2048 each (even though the heap is not used).

Reply
  • It needs to set up the stack and heap size, vector table and define all the handlers (interrupt handlers, reset handler, hardfault handler etc).

    You need to set the stack and heap size so that you avoid overflow. SDK does not use heap (like malloc). For example the stack and heap size in the ble_app_template project in SDK 11 is set to 2048 each (even though the heap is not used).

Children
Related