在开发2640的时候感觉到ram不够用,然后对RAM部分有一些疑问,希望大神们能指点一下
1。
- 高达 28KB 系统 SRAM,其中 20KB 为超低泄漏静态随机存取存储器 (SRAM)
- 8KB SRAM,适用于缓存或系统 RAM 使用
20K的静态随机存储器主要用来存储什么东西呢?8K的缓存或系统缓存又用来存储什么呢?分成20+8的优点是什么呢?
2.Char gapRoleTaskStack[GAPROLE_TASK_STACK_SIZE];这样声明是占用那段存储呢?
static Char gapRoleTaskStack[GAPROLE_TASK_STACK_SIZE];那这样呢?
malloc又占用哪段存储呢?
3.
40 540 bytes of readonly code memory
5 353 bytes of readonly data memory
16 328 bytes of readwrite data memory
flash占用=40540+535?
ram占用 = 5353+16328?
那写ram中有多少在上述的20K里,多少在上述的8K里呢?
跪谢大神
Viki Shi:
The flash memory provides nonvolatile storage for code and data. The flash memory is in-system programmable.
The SRAM (static RAM) can be used for both storage of data and execution of code and is split into two 4-KB blocks and two 6-KB blocks. Retention of the RAM contents in standby mode can be enabled or disabled individually for each block to minimize power consumption. In addition, if flash cache is disabled, the 8-KB cache can be used as a general-purpose RAM.
The ROM provides preprogrammed embedded TI RTOS kernel, Driverlib and lower layer protocol stack software (Bluetooth low energy Controller). It also contains a bootloader that can be used to reprogram the device using SPI or UART
你可以看下手册,有更直观的方框图: www.ti.com.cn/…/cc2640.pdf
Wang Monkey:
回复 Viki Shi:
谢谢,,,难为我的英语了
da qin zheng sheng:
另外还有2k sram,用来给scs做程序空间的,也可以当作数据空间的。20k+8k+2k,地址空间不连续。
da qin zheng sheng:
现在可以考虑cc2642,sram=80k+8k+4k
Wang Monkey:
回复 da qin zheng sheng:
板子贴完了。。。。瑟瑟发抖
Viki Shi:
回复 Wang Monkey:
一般应用CC2640也够了,不用担心英文手册,参数对照方框图看一看就清楚了