Hello
The nRF51822 has as I understand it 256kByte flash and 16kByte SRAM. If I run the S110 softdevice, how much sram/flash memory is available to my application program?
Regards Erik
Hello
The nRF51822 has as I understand it 256kByte flash and 16kByte SRAM. If I run the S110 softdevice, how much sram/flash memory is available to my application program?
Regards Erik
Have you read the S110 SoftDevice Specification? Table 16 lists the flash and RAM requirements of the softdevice.
80 kB flash and 8 kB of static RAM for S110 leaves 176 kB of flash and 8 kB of RAM for the application. Also note that S110 uses up to 1.5 kB of stack, so you must make sure that your stack is big enough to accomodate both this and your application's requirement.
Have you read the S110 SoftDevice Specification? Table 16 lists the flash and RAM requirements of the softdevice.
80 kB flash and 8 kB of static RAM for S110 leaves 176 kB of flash and 8 kB of RAM for the application. Also note that S110 uses up to 1.5 kB of stack, so you must make sure that your stack is big enough to accomodate both this and your application's requirement.
Exactly where the stack is located in RAM is dependent on toolchain, but you're right that the S110 will use of the MSP stack defined by the application. Your understanding is therefore correct.
Ole, can you comment on the reason that the SD uses application stack and not its own stack inside of the 8K ram block that it grabs for itself?