.global _econst_loadstart, _econst_runstart, _econst_size
.global _pinit_loadstart, _pinit_runstart, _pinit_size
.global _switch_loadstart, _switch_runstart, _switch_size
.global _text_loadstart, _text_runstart, _text_size
.global _cinit_loadstart, _cinit_runstart, _cinit_size
.global _const_loadstart, _const_runstart, _const_size
.global _econst_loadstart, _econst_runstart, _econst_size
.global _pinit_loadstart, _pinit_runstart, _pinit_size
.global _switch_loadstart, _switch_runstart, _switch_size
.global _text_loadstart, _text_runstart, _text_size
测试例子:
提供的示例在TMS320F2812,TMS320F2808,TMS320F28335eZdsp开发板上进行了测试。板子上LED的闪烁可以从视觉上证实程序是否正确运行。下面的程序是基于F2808eZdsp评估板设计和测试的。同样的,这种方法可以用于其他eZdsp开发板。
Code Composer Studio环境:
1.使用USB线连接F2808eZdsp开发板到PC,接上电源线给板子供电。
2.打开Code Composer Studio,设置F2808 eZdsp 。
3.打开和编译Example_280xx_Flash_to_RAM_nonBIOS.pjt。
4.下载.out文件到芯片的flash中。
5.调试程序(debug)。
6.运行程序(run)。
在eZdsp电路板上的LED应闪烁,表示程序正在运行。
应用:
现有的Flash应用程序可以很容易地通过移植相关代码文件来实现此功能。基本的移植步骤如下:
1.用DSP28xxx_CodeStartBranch.asm替换CodeStartBranch.asm。
2.在工程中添加DSP28xxx_SectionCopy_nonBIOS.asm文件。
3.用特殊生成的CMD文件代替现有的CMD文件。
这个基本步骤不适用于一些特殊情况,比如用户自己定义的段,等
应用例子:
为了演示的应用程序集成的过程,在C280x,C2801x
C /C 头文件和外设示例的Example_2808_Flash.pjt中使用下列步骤移植。
1.下载安装C280x, C2801x C/C Header Files and Peripheral Examples。
2.如上所述连接板,打开项目文件。
3.删除项目中的DSP280x_CodeStartBranch.asm文件,在项目中添加DSP28xxx_CodeStartBranch.asm文件。
4.在项目中添加DSP28xxx_SectionCopy_nonBIOS.asm文件。
5.删除项目中的cmd文件,在项目中添加F280xx_nonBIOS_flash.cmd文件。
6.把DSP280x_usDelay.asm中的.sect “ramfuncs”改为.text,使DSP28x_usDelay在被分配在.test段中。
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-33664-6.html
美国派出的宙斯盾是万吨级咱们得052才七千吨
按他的经济法
废掉美元霸权之时就是美国垮台之时