IRTC and MQX for an MCF52258

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

IRTC and MQX for an MCF52258

Jump to solution
382 Views
cathymencsik
Contributor I

Hello all,

I have been trying to compile an MQX application alongside a BSP and PSP that supports IRTC for MQX 3.8 on my MCF52258 custom board.

I am using the irtc_mcf5xxx.h library inside of my BSP and it compiles fine.

Any time I attempt to call _rtc_set_time from my application, I get a linker error:

Description    Resource Path Location Type

Undefined : "_rtc_set_time(rtc_time_struct*)" Referenced from "initializeApplication()" in app_NGUC_SingleBoard_52258    C/C++ Problem

Does anyone know why I might be experiencing problems?

Thanks


0 Kudos
1 Solution
306 Views
c0170
Senior Contributor III

Hello Cathy Mencsik,

does your application includes bsp.h ? Does your custom bsp contain rtc source code ? Bsp header should includes

#include <rtc_mcf52xx.h>

#include <rtc.h>


where are declaration of rtc functions.


Regards,

c0170

View solution in original post

0 Kudos
1 Reply
307 Views
c0170
Senior Contributor III

Hello Cathy Mencsik,

does your application includes bsp.h ? Does your custom bsp contain rtc source code ? Bsp header should includes

#include <rtc_mcf52xx.h>

#include <rtc.h>


where are declaration of rtc functions.


Regards,

c0170

0 Kudos