TMS320F280260 编译没有问题,
mian函数只有IO口的初始化和IO的操作。没有其他程序,cmd文件使用系统自带文件280260_RAM_LINK.CMD
在进行Emulator时,
提示C28xx: 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.
进入仿真界面后,设置断点,没有用,点击界面上的暂停时,
提示 No source available for "0x3ff7eb" ;
感谢赐教。
Susan Yang:这种错误常见的原因有:
a)目标上不存在
b)与调试器内存映射冲突
c)尚未初始化
d)以上部分或全部
您可以对照一下 数据手册 www.ti.com.cn/…/tms320f280260.pdf 的 Figure 2-3. 280260/280220 Memory Map 以及您自己的map文件
TMS320F280260 编译没有问题,
mian函数只有IO口的初始化和IO的操作。没有其他程序,cmd文件使用系统自带文件280260_RAM_LINK.CMD
在进行Emulator时,
提示C28xx: 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.
进入仿真界面后,设置断点,没有用,点击界面上的暂停时,
提示 No source available for "0x3ff7eb" ;
感谢赐教。
dong dong:
回复 Susan Yang:
我还有几个疑问:
1. 调试器的内存映射在哪里查看?
2. 下面是我的CMD文件的全部内容,请帮我看一下那一块有问题,谢谢!谢谢!
MEMORY{PAGE 0 : /* For this example, L0 is split between PAGE 0 and PAGE 1 */ /* BEGIN is used for the "boot to SARAM" bootloader mode */
BEGIN : origin = 0x000000, length = 0x000002 RAMM0 : origin = 0x000050, length = 0x0003B0 PRAML0 : origin = 0x008000, length = 0x000400 RESET : origin = 0x3FFFC0, length = 0x000002
IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */ IQTABLES2 : origin = 0x3FEB50, length = 0x00008C /* IQ Math Tables in Boot ROM */ IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA /* IQ Math Tables in Boot ROM */
BOOTROM : origin = 0x3FF27C, length = 0x000D44
PAGE 1 :
/* For this example, L0 is split between PAGE 0 and PAGE 1 */ BOOT_RSVD : origin = 0x000002, length = 0x00004E /* Part of M0, BOOT rom will use this for stack */ RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */ DRAML0 : origin = 0x008200, length = 0x000200}
SECTIONS{ /* Setup for "boot to SARAM" mode: The codestart section (found in DSP28_CodeStartBranch.asm) re-directs execution to the start of user code. */ codestart : > BEGIN, PAGE = 0 ramfuncs : > RAMM0 PAGE = 0 .text : > PRAML0, PAGE = 0 .cinit : > RAMM0, PAGE = 0 .pinit : > RAMM0, PAGE = 0 .switch : > RAMM0, PAGE = 0 .reset : > RESET, PAGE = 0, TYPE = DSECT /* not used, */
.stack : > RAMM1, PAGE = 1 .ebss : > DRAML0, PAGE = 1 .econst : > DRAML0, PAGE = 1 .esysmem : > RAMM1, PAGE = 1
IQmath : > PRAML0, PAGE = 0 IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD }