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 0x32d4
Cannot write to target
不知道问题出在了什么地方。求大神帮助!
谢谢!
LOOK

