TI中文支持网
TI专业的中文技术问题搜集分享网站

使用CCS4.2 给 TMS570LS3137 下载程序出错

CCS版本:4.2.4

HalCoGen版本:3.01.01

Emulator:XDS100v2 (Blackhawk: BH-USB-100v2)

Target board:按照HDK板原理图自己做的TMS570LS3137的实验板

使用HalCoGen产生工程代码,使用CCS编译下载,build过程没有问题,debug之后出现:

在CCS的console中输出信息:

CortexR4: GEL Output:     Memory Map Setup for Flash @ Address 0x0CortexR4: Loader: One or more sections of your program falls into a memory region that is not writable.  These regions will not actually be written to the target.  Check your linker configuration and/or memory map.
CortexR4: File Loader: Data verification failed at address 0x00000002 Please verify target memory and memory map.
Error found during data verification.
Ensure the linker command file matches the memory map.

另外,使用的cmd文件配置如下:

MEMORY
{
    VECTORS (X)  : origin=0x00000000 length=0x00000020
    FLASH0  (RX) : origin=0x00000020 length=0x0017FFE0
    FLASH1  (RX) : origin=0x00180000 length=0x00180000
    STACKS  (RW) : origin=0x08000000 length=0x00001500
    RAM     (RW) : origin=0x08001500 length=0x00026B00

/* USER CODE BEGIN (2) */
/* USER CODE END */
}

/* USER CODE BEGIN (3) */
/* USER CODE END */

/*—————————————————————————-*/
/* Section Configuration                                                      */

SECTIONS
{
    .intvecs : {} > VECTORS
    .text    : {} > FLASH0 | FLASH1
    .const   : {} > FLASH0 | FLASH1
    .cinit   : {} > FLASH0 | FLASH1
    .pinit   : {} > FLASH0 | FLASH1
    .bss     : {} > RAM
    .data    : {} > RAM

/* USER CODE BEGIN (4) */
/* USER CODE END */
}

不过,同样的配置在TMDX570LS31USB (for USB Stick)出现的问题不同,输出信息如下;

CortexR4: GEL Output:     Memory Map Setup for Flash @ Address 0x0CortexR4: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.
CortexR4: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x32d4Cannot write to target

不知道问题出在了什么地方。求大神帮助!

谢谢!

LOOK

aaaa LOOK:

回复 Renton:

Hi Renton,

    谢谢你的回答!我按照你的提示,把CCS4.24卸载干净(附带的东西挺多的,下载起来还是比较麻烦的),手头上只有CCS5.2,就安装了。后来新建了CCS工程,修改了sys_link.cmd文件“RAM     (RW) : origin=0x08001500 length=0x0003EB00”,最后程序下载运行成功!

Tkx!

LOOK

Renton:

回复 aaaa LOOK:

Hi LOOK,

    解决了就好啦!

    后面我们多交流。

赞(0)
未经允许不得转载:TI中文支持网 » 使用CCS4.2 给 TMS570LS3137 下载程序出错
分享到: 更多 (0)