Linker and BSP problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Linker and BSP problem

804 次查看
kdavis
Contributor III

MCF54418, CW 3.8, CW 10.2

 

I am having a problem where code warrior is saying that functions from the BSP are undefined, though it compiles fine. This is only happening with the real time clock module in particular. What I am really lost on is that it is able to build the sample RTC project provided by freescale, but is unable to build in my own project, the error output and calling code are below

 

C:/Freescale/CW MCU v10.2/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error

>Undefined : "_rtc_init(unsigned long)"

>Referenced from "initRTC()" in

C:/Freescale/CW MCU v10.2/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error

>Undefined : "_rtc_int_enable(unsigned long,unsigned long)"

>Referenced from "initRTC()" in

 

int initRTC() {   int temp = _rtc_init(RTC_INIT_FLAG_ENABLE);   //install our interrupt   install_interrupt();   _rtc_int_enable (TRUE, RTC_INT_MIN_MASK);   return temp; }   

 

Added error for other part Message was edited by: Kevin Davis

标签 (1)
标记 (3)
0 项奖励
回复
3 回复数

658 次查看
Cdn_aye
Senior Contributor I

Kevin

This may be obvious, but did you enable the RTCS in the user_config.h file, rebuild the bsp, psp etc? The linkage error usually means MQX didn't include the module. I have seen something similar in the MFS. We had to enable the shell or we had errors even though we don't use the shell.

Good luck

0 项奖励
回复

658 次查看
Monica
Senior Contributor III

Kevin,

How is the project going? was this suggestion helpful or did you find any other resolution?

We'd like to know :smileywink:

Regards!

0 项奖励
回复

658 次查看
dataScout
NXP Employee
NXP Employee

Hello,

Are you linking with the same libraries as the sample project provided by Freescale?

Regards

0 项奖励
回复