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

Memory management of nRF controllers

Hi all, I have some doubts over the memory management of nRF51822 and nRF51422-EK. I have gone through the link in this forum where it is explained buy I'm still not sure where exactly does the Application and stack hex files sit in.

As per normal application file size is around 80kB and stack Softdevice file size of S130 is around 312Kb, while the typical RAM of these devices is only 32kB or 64 max and flash size is only 256kB max. I'm not sure where these files fits in actually.

Can someone please explain this to me ?

Parents
  • Are you looking at the size of the *.hex files? Because if you are, that's not the size of the application nor the softdevice. Hex files are an ASCII representation of the binary and are about 45/16 X the size of the binary they represent. So the S130 is about 108kB, which it would have to be as the user code starts at 0x1c000, the softdevice would have to fit before that.

    If you're not looking at the hex file, where are you getting that incorrect 312kB number from.

Reply
  • Are you looking at the size of the *.hex files? Because if you are, that's not the size of the application nor the softdevice. Hex files are an ASCII representation of the binary and are about 45/16 X the size of the binary they represent. So the S130 is about 108kB, which it would have to be as the user code starts at 0x1c000, the softdevice would have to fit before that.

    If you're not looking at the hex file, where are you getting that incorrect 312kB number from.

Children
Related