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.

[参考译文] 如何将 CC1310高速缓存用作 RAM?

Guru**** 2393725 points
Other Parts Discussed in Thread: CC1310

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/715129/how-to-use-cc1310-cache-as-ram

器件型号:CC1310
主题中讨论的其他器件: SimpliciTICC2640

你(们)好

如何将 CC1310 高速缓存用作 RAM? 进行更改、请参阅以下文章。

要使用8KB 缓存 RAM、您必须通过指向地址来使用地址空间。  
步骤1:
在 main.c 文件中添加头文件:
#include "driverlib/VIMS.h"
并定义  
#define RAM_BUFFER_ADDRESS 0x11000000 // VIMS GP-RAM 的地址
步骤2:
然后调用  
VIMSModeSet (VIMS_BASE、VIMS_MODE_DISABLED);
以前、
/*启动 BIOS */
BIOS_start();
步骤3:
然后、您可以通过指针使用 GPRAM:
uint8_t * ptr = RAM_buffer_address;
并从该指针写入/读取您的数据。  

以及上述步骤。 我应该对 ccfg.c 进行更改吗?

//##############################

//在高速缓存或 GPRAM 之间进行选择

//##############################

#ifndef SET_CCFG_Size_and_DIS_FLAGS_DIS_GPRAM

//#define SET_CCFG_SIZE 与 DIS_FLAGS_DIS_GPRAM       0x0       //缓存被禁用,GPRAM 在0x11000000-0x11001FFF 处可用

#define SET_CCFG_SIZE 和 DIS_FLAGS_DIS_GPRAM          0x1       //启用高速缓存和禁用 GPRAM (不可用)

#endif