TQ2440 之keil4 开发
来源:互联网 发布:手机淘宝查看历史订单 编辑:程序博客网 时间:2024/04/29 07:31
如果直接将ADS下的启动代码copy到MDK下,编译会提示出错,一般错误是:.\OutPutFiles\uCOS-
II_Uart.axf: Error: L6238E: 2440_init.o(Init_2440) contains invalid call from '~PRES8 (The
user did not require code to preserve 8-byte aligment of 8-byte data objects)' function to
'REQ8 (Code was permitted to depend on the 8-byte aligment of 8-byte data items)' function
App_Main.
解决方法是在代码段前部添加:PRESERVE8,如图1
Eorror : L6218E:Undefined symbol PCLK (referred form 2440lib.o) 错误只需要添加
#define GLOBAL_CLK 1 这样编译器就不会出现这个错误提示。#define GLOBAL_CLK 1 需要添加在最开始。不然也是会报错的。
例如:#define GLOBAL_CLK 1 #include <stdlib.h> #include <string.h> #include "def.h" #include "2440addr.h" #include "2440lib.h" #include "option.h"
II_Uart.axf: Error: L6238E: 2440_init.o(Init_2440) contains invalid call from '~PRES8 (The
user did not require code to preserve 8-byte aligment of 8-byte data objects)' function to
'REQ8 (Code was permitted to depend on the 8-byte aligment of 8-byte data items)' function
App_Main.
解决方法是在代码段前部添加:PRESERVE8,如图1
还有可能出现U32没有定义,只需要在加上 #define U32 unsigned int
还有可能出现
Eorror : L6218E:Undefined symbol PCLK (referred form 2440lib.o)
编译器出现
Eorror : L6218E:Undefined symbol PCLK (referred form 2440lib.o) 错误只需要添加
#define GLOBAL_CLK 1 这样编译器就不会出现这个错误提示。#define GLOBAL_CLK 1 需要添加在最开始。不然也是会报错的。
例如:#define GLOBAL_CLK 1 #include <stdlib.h> #include <string.h> #include "def.h" #include "2440addr.h" #include "2440lib.h" #include "option.h"
- TQ2440 之keil4 开发
- TQ2440,学习笔记之开发板介绍
- 使用keil4开发FL2440开发板 keil4配置
- keil4 进行 S3C2440裸机开发
- keil4 stm32 开发环境搭建
- 移植uboot2010.06到TQ2440开发板详解之二
- 移植Uboot-2010.06到TQ2440开发板详解之三
- 移植uboot2010.06到TQ2440开发板详解之二
- 移植Uboot-2010.06到TQ2440开发板详解之三
- TQ2440开发日记
- TQ2440开发板存储器
- 入手ST-LINK开发/MDK/KEIL4
- TQ2440之U盘挂载
- TQ2440之LED点亮
- TQ2440定时器之PWM
- TQ2440之UART
- tq2440开发板使用记录
- TQ2440裸机开发实例笔记
- hnuoj LRU Caching (链表,结构体指针 / vector)
- matlab字符串处理
- Java 并发性
- 跳转函数
- C++ Websites, C++ Libraries
- TQ2440 之keil4 开发
- hdu 4474 Yet Another Multiple Problem bfs
- leetcode Rotate Image
- oracle 闪回恢复区 (Flash Recovery Area)
- The die is cast UVA 657
- 《简约至上:交互式设计四策略》笔记
- Documentation/sound/oss/Soundblaster
- 条件表达式
- make Image uImage与zImage的区别