warning: creating output section vectors without SECTIONS specification
来源:互联网 发布:linux 运维常见命令 编辑:程序博客网 时间:2024/06/16 15:03
相信很多人都遇到过这个警告
警告1.>> warning: creating output section vectors without SECTIONS specification
这段的警告的意思是vectors 段没定义,vectors 是在rts55x.lib中定义的,一般都要用这个库,所有在cmd文件中添加上vectors 的定义就可以了
警告2.>> warning: creating output section .vectors without SECTIONS specification
这个警告一般是使用了 中断汇编文件 scr扩展名的文件,在这个文件中定义了段.vectors 注意 前面的 . ,如果你想用这个写中断向量也要在cmd 文件中 添加.vectors段,这样cmd文件就有 vectors 和 .vectors
其实可以不直接用中断汇编文件那么麻烦,可以使用csl库,
/* 声明 中断向量表开始函数 其实 _Reset 在rts55x.lib 中定义 */
extern void Reset(void);
在程序中只要执行下面的就可以,
/*初始化 CSL library */
CSL_init();
IRQ_setVecs((Uint32)(&Reset));
//定时器中断初始化就像下面一样
void Timer0ini(void)
{
Uint16 eventId0;
/* 打开 Timer 0,设置为默认 */
mhTimer0 = TIMER_open(TIMER_DEV0, TIMER_OPEN_RESET);
/* 获得 Timer 0的 Event Id , for use with */
eventId0 = TIMER_getEventId(mhTimer0);
/*清除原来中断 */
IRQ_clear(eventId0);
/* 设置新的中断函数 */
IRQ_plug(eventId0,&timer0Isr);
/* 写timer0 配置 */
TIMER_config(mhTimer0, &timCfg0);
/* 开启中断 */
IRQ_enable(eventId0);
}
详细请参考 csl说明文件和 ccs 自带例子
- warning: creating output section vectors without SECTIONS specification
- omapl138平台,BIOS5.41系统warning: creating output section ".vecs" without a SECTIONS specification
- 编译提示warning: L6314W: No section matches pattern *(InRoot$$Sections).解决方法
- DSP 调试中出现“>> warning: creating .stack section with default size of 400 (hex) words.”警告的解决方法
- [LinkerScript.14] SECTION命令: Output Section Description
- [LinkerScript.15] SECTION命令: Output Section Name
- [LinkerScript.16] SECTION命令: Output Section Address
- [R] creating matrices from vectors by adding a dimension attribute
- WARNING: You are creating/reusing datafile
- WARNING: modpost: Found 1 section mismatch(es).
- c++ linker warning: defined in discarded section
- Warning: Multiple build commands for output file
- Warning: Multiple build commands for output file
- Warning: Multiple build commands for output file
- Creating Custom Configuration Sections in Web.config Using .NET 2.0's Configuration API
- Creating Custom Configuration Sections in Web.config Using .NET 2.0's Configuration API
- used in key specification without a key length
- '/DYNAMICBASE' not compatible with '/DRIVER' specification; link without '/DYNAMICBASE'
- java类编译运行问题
- Android 自定义 ExpandableListView
- Open API: 电信ECP能力开放平台
- 没空烦恼,人生最好
- Using an Extended Kalman Filter for Estimating Vehicle Dynamics and Mass
- warning: creating output section vectors without SECTIONS specification
- DIV+CSS命名规则
- 怎样成为一名优秀的科学家
- 宽容 靠自己 鲨鱼与鱼 神迹 钓竿
- 专注测试领域-事业生涯的开始
- Android Bluetooth HID实现详解
- ASP.NET4.5与VisualStudio11预览(光轮2000?)
- ChartDirector 官方的例子,加上了我的注释,比jfreechart简单些
- mongodb 常用命令解释 (三)