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 FLASH cmd文件

Other Parts Discussed in Thread: CC1310

我将数据存储在内部flash中,并修改了cmd文件,通过uart将数据传到cc1310的flash中然后再读出来。仿真已经通过,但是代码无法固化。是什么原因呢?下面是我的cmd文件内容。

注:USER_FLASH_DATA 是我开辟的用户数据空间,在主函数中对其进行读写。

/*
* ======== CC1310DK_7XD.cmd ========
* CC26x0F128 PG2 linker configuration file for Code Composer Studio
*/

/* Override default entry point. */
--entry_point ResetISR
/* Allow main() to take args */
--args 0x8
/* Suppress warnings and errors: */
/* - 10063: Warning about entry point not being _c_int00 */
/* - 16011, 16012: 8-byte alignment errors. Observed when linking in object */
/* files compiled using Keil (ARM compiler) */
--diag_suppress=10063,16011,16012

/* The starting address of the application. Normally the interrupt vectors */
/* must be located at the beginning of the application. */
#define FLASH_BASE 0x0
#define FLASH_SIZE 0x1DFFF

/////////////////user flash mem//////////////////////
#define USER_FLASH_DATA_BASE 0x1E000
#define USER_FLASH_DATA_SIZE 0x2000
///////////////user flash mem end////////////////////
#define RAM_BASE 0x20000000
#define RAM_SIZE 0x4800
/* System memory map */

MEMORY
{
/* Application stored in and executes from internal flash */
FLASH (RX) : origin = FLASH_BASE, length = FLASH_SIZE
/* Application uses internal RAM for data */
SRAM (RWX) : origin = RAM_BASE, length = RAM_SIZE

USER_FLASH_DATA(RWX) : origin = USER_FLASH_DATA_BASE, length = USER_FLASH_DATA_SIZE

}

/* Section allocation in memory */

SECTIONS
{
.text : > FLASH
.emb_text : > FLASH
.ccfg : > FLASH (HIGH)

.data : > SRAM
.bss : > SRAM
.sysmem : > SRAM
.stack : > SRAM (HIGH)
.nonretenvar : > SRAM
.const : > SRAM
.constdata : > SRAM
.rodata : > SRAM
.cinit : > SRAM
.pinit : > SRAM
.init_array : > SRAM
}