2808编译成功,无法运行程序

2019-07-25 14:32发布

我使用的是CCS3.3+补丁,仿真2808simulation形式,不连接仿真器。编译一个很简单的cputimer0中断导致GPIO端口反转的例子。使用的是2808头文件里面自带的“2808_RAM_lnk”这个cmd但是发现编译之后会有很多warning。但是我对比map检查了cmd没有问题,然后我就运行这个程序但是在加载out文件的时候出现了“Trouble Writing Memory Block at 0x3fb000 on Page 1 of Length 0x100: Cannot access memory address 0x3FB000”这个错误。希望大家帮忙分依稀下是哪里出现了问题?
对应的cmd上传到附件里面了。
下面是编译提示:
----------------------  2808_gpio_interrupt.pjt - Debug  ----------------------
[2808_gpio_interrupt.c] "E:programCCStudio_v3.3C2000cgtoolsincl2000" -g -pdsw225 -fr"E:/TMS320FXXX program/2808_GPIO_interrupt/2808_gpio_interrupt/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"Debug.lkf" "2808_gpio_interrupt.c"
"2808_gpio_interrupt.c", line 42: warning: last line of file ends without a newline

[DSP280x_CpuTimers.c] "E:programCCStudio_v3.3C2000cgtoolsincl2000" -g -pdsw225 -fr"E:/TMS320FXXX program/2808_GPIO_interrupt/2808_gpio_interrupt/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"Debug.lkf" "DSP280x_CpuTimers.c"

[DSP280x_DefaultIsr.c] "E:programCCStudio_v3.3C2000cgtoolsincl2000" -g -pdsw225 -fr"E:/TMS320FXXX program/2808_GPIO_interrupt/2808_gpio_interrupt/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"Debug.lkf" "DSP280x_DefaultIsr.c"

[DSP280x_GlobalVariableDefs.c] "E:programCCStudio_v3.3C2000cgtoolsincl2000" -g -pdsw225 -fr"E:/TMS320FXXX program/2808_GPIO_interrupt/2808_gpio_interrupt/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"Debug.lkf" "DSP280x_GlobalVariableDefs.c"

[DSP280x_Gpio.c] "E:programCCStudio_v3.3C2000cgtoolsincl2000" -g -pdsw225 -fr"E:/TMS320FXXX program/2808_GPIO_interrupt/2808_gpio_interrupt/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"Debug.lkf" "DSP280x_Gpio.c"

[DSP280x_PieCtrl.c] "E:programCCStudio_v3.3C2000cgtoolsincl2000" -g -pdsw225 -fr"E:/TMS320FXXX program/2808_GPIO_interrupt/2808_gpio_interrupt/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"Debug.lkf" "DSP280x_PieCtrl.c"

[DSP280x_PieVect.c] "E:programCCStudio_v3.3C2000cgtoolsincl2000" -g -pdsw225 -fr"E:/TMS320FXXX program/2808_GPIO_interrupt/2808_gpio_interrupt/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"Debug.lkf" "DSP280x_PieVect.c"

[DSP280x_SysCtrl.c] "E:programCCStudio_v3.3C2000cgtoolsincl2000" -g -pdsw225 -fr"E:/TMS320FXXX program/2808_GPIO_interrupt/2808_gpio_interrupt/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"Debug.lkf" "DSP280x_SysCtrl.c"

[Linking...] "E:programCCStudio_v3.3C2000cgtoolsincl2000" -@"Debug.lkf"
<Linking>
>> warning: creating output section CpuTimer2RegsFile without SECTIONS
            specification
>> warning: creating output section CpuTimer1RegsFile without SECTIONS
            specification
>> warning: creating output section FlashRegsFile without SECTIONS specification
>> warning: creating output section CpuTimer0RegsFile without SECTIONS
            specification
>> warning: creating output section CsmPwlFile without SECTIONS specification
>> warning: creating output section GpioIntRegsFile without SECTIONS
            specification
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
19条回答
linhai2009
1楼-- · 2019-07-26 23:47
我都没有使用仿真器仅仅是电脑的sim仿真,因此不存在芯片的问题。只能单独看看是不是超过了这个范围。不过应该不会,我的程序非常简单。几乎和例程里面的cpu_timer0一样小,因此不可能会出现不够的情况呀?
thf2008
2楼-- · 2019-07-27 02:51
我在打开软件的时候就提示错误了。可能我配置不对,以前没用过软件仿真。是不是你的也有这个问题?
都要设置什么啊
thf2008
3楼-- · 2019-07-27 05:38
Trouble Writing Memory Block at 0x3fa442 on Page 0 of Length 0x442: Cannot access memory address 0x3FA000
我的是这样的提示
于是我把有关H0的部分都改到L0 和L1就没问题了
thf2008
4楼-- · 2019-07-27 09:01
 精彩回答 2  元偷偷看……
linhai2009
5楼-- · 2019-07-27 13:08
之前也没有做过单纯的软件仿真,都是在开发板上跑程序,我上面的设置在开发板上没有问题。估计就是地址分配的问题。唉还得查查资料。
linhai2009
6楼-- · 2019-07-27 17:23
刚才尝试着修改了一下,可以运行,load也没有问题。不过程序会停在关闭看门狗那句上,有一个while循环,等待标志位置一,因此我怀疑还是编译CCS设置的问题吧?又或者CCS本身只能最编译的检查而不能真正的仿真出结果??这个太奇怪了吧?估计还是设置有问题,希望有哪位用过2808的simulator模式的朋友能指导一下。

一周热门 更多>