Nordic的协议栈用以hex的方式提供给用户开发。Nordic的芯片没用到类似stm32存储重映射的功能,所以code的地址直接从0x0000000开始。以S132_SDS_v5.0协议栈为例说说NORDIC协议栈以及应用层ROM和RAM的分布。协议栈的ROM是固定不变的,每个协议栈都有固定的ROM SIZE,MBR也打包在协议栈和hex文件中, 所以S132_SDS_v5.0占用的ROM为140k。ROM是根据用户配置的资源来决定。另外协议栈与app层共用栈空间,协议栈不用堆。
1.ROM分布
启动地址 长度
APP ROM地址 0x23000 0x5D000
2.RAM分布
By default, the nRF52 SoC will have a shared callstack with both application stack frames and SoftDevice stack
frames, managed by the main stack pointer (MSP).
There is no heap required by nRF52 SoftDevices. Theapplication is free to allocate and use a heap without
disrupting the SoftDevice functionality.