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"