This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[FAQ] CC2640 flash读写保护/内存优化

Other Parts Discussed in Thread: CC1310, CC2640, CC2640R2F

CC1310/CC2640flash读写保护

CC1310,CC2640/50没有MPU【memory protection unit】模块【PS:最新的CC13X2/CC26X2系列有】,因此CPU可以读取出芯片的所有信息。用户可以配置CCFG来进行读写保护。

防止数据被读/写的步骤:

l  通过CCFG禁止所有JTAG DAP/TAP【Debug/Test Access Port】

l  通过CCFG禁止ROM bootloader 及 ROM bootloader backdoor

另外此功能还可以用SmartRF flash programmer实现:

CC2640R2F的内存优化

论坛上有不少用户希望能更有效地使用CC2640R2F芯片上的内存资源,以下是一些小tips,用来减少应用程序对flash的占用:

1、项目开始前,请先评估应用所需要的内存大小

2、查看芯片用户手册的flash optimization一节:https://dev.ti.com/tirex/explore/content/simplelink_cc2640r2_sdk_4_40_00_10/docs/blestack/ble_user_guide/html/ble-stack-3.x/creating-a-custom-bluetooth-low-energy-application.html#optimizing-bluetooth-low-energy-flash-and-ram-memory-usage

3、程序设计时注意,是否有更有效的内存使用方式

4、可以关闭掉一些不用的功能,以此降低内存。协议栈的功能及如何关闭请查看2提供的链接

5、在应用程序的cfg文件中,把HEAPMGR_CONFIG更改为0x81,具体请参考:https://software-dl.ti.com/lprf/simplelink_cc2640r2_latest/docs/blestack/ble_user_guide/html/cc2640/memory_management.html