Link Error in Timer Sample program - timer_m52259evb.mcp

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Link Error in Timer Sample program - timer_m52259evb.mcp

1,917 Views
lel_chen
Contributor I

Hi,

         In the sample program for timer[timer_m52259evb.mcp], I face the following linker errors:

-------------------------------------------------------------

Link Error: Undefined: "_timer_cancel"
Referenced from "main_task" in main.c
Link Error: Undefined: "_timer_create_component"
Referenced from "main_task" in main.c
Link Error: Undefined: "_timer_start_periodic_at_ticks"
Referenced from "main_task" in main.c
-------------------------------------------------------------

 

The header file <timer.h> has been included.

Is it because of any issue in the linking order of files?

 

How can I resolve this issue?  Kindly help.

 

Thanks,

Chen

Labels (1)
0 Kudos
5 Replies

562 Views
CrasyCat
Specialist III

Hello

 

- Which version of CodeWarrior are you using?
To retrieve that info:
   - Start CodeWarrior 
   - Select Help -> About Freescale CodeWarrior
   - Click on "Install Products"
   - CodeWarrior version used is displayed on top in the Installed Products dialog.

 

Where did you find the timer example project?

 

CrasyCat

0 Kudos

562 Views
lel_chen
Contributor I

Hi,

      The version of CodeWarrior is as given below:

"CodeWarrior Development Studio for microcontrollers V6.2 Release, build 8127"

 

I got hold of the timer example program from MQX download in:  

 "..\Freescale\Freescale MQX 3.2\mqx\examples\timer"

 

Kindly help,

 

Thanks,

Chen

0 Kudos

562 Views
CrasyCat
Specialist III

Hello

 

Apparently you are not using the appropriate tool chain.

"CodeWarrior Development Studio for microcontrollers V6... " only support Coldfire V1 MCUs (MCP51xx).

 

If you want to use 52259 you need to use (download)

"CodeWarrior Development Studio for ColdFire Architectures V7.1".

This can be downloaded from here.

 

I hope this helps.

 

CrasyCat

0 Kudos

562 Views
lel_chen
Contributor I

Hi,

      I installed the following version of Codewarrior :

CodeWarrior Development Studio for Coldfire Architectures Version 7.1.1a Patch, Build 9

 

and tried the sample program again. Still, Im facing the same linker error.

 

The MQX version used is MQX3.2

 

Is it due to any settings in Codewarrior?

Kindly help.

 

Thanks,

Chen

0 Kudos

562 Views
CrasyCat
Specialist III

OK

 

If the issue arises while building a MQX demo, I would recommend you post your question to the MQX forum.

 

CrasyCat

0 Kudos