Microchip
直播中

贾绰

8年用户 183经验值
私信 关注
[问答]

将MPLAB8 C30项目转换为MPLABX XC16,无法找到RTCC功能

我正在把一个MPLAB8项目转换成一个PIC24FJ256DA210,它使用C30编译器到MPLABX和XC16编译器,并且我认为我已经解决了所有的问题,除了XC16编译不能找到我正在使用的RTCC函数。然后修复GLD文件使用CRT0xExpDeld24.0和CRT1XExpDeld.24.O所有编译,但当它链接时,我得到了RTCReCaldtimeDeWyV1、RTCSETALARMARRTPUV1、RTCSETMIGENEABLE、V1、RTCTCReNETMYMEV1、RTCCITITCHOLKYV1、RTCCFRONYV1的未定义的引用错误,在MPLAB8C30项目中我看不到。在这里指定任何包含这些函数的库。所以我不知道它是如何得到它们的。在MPLABX XC16项目中,我尝试了包括LBPIC24FXXX COFF.A和LIPPIC24FXXX ELF。一个文件,但都不起作用。我使用MPLAB 8.80、C30 3.30、MPLABX 4.15和XC16 1.33。这是给我的。我需要做些什么来解决这个问题?

以上来自于百度翻译


      以下为原文

    I am in the process of converting an MPLAB8 project for a PIC24FJ256DA210 that uses C30 compiler to MPLABX with the XC16 compiler and I think I have all of the issues worked out except the XC16 compile cannot find the RTCC functions that I am using.

I imported the project into MPLABX. Then fixed up the gld file to use crt0_extended24.0 and crt1_extended24.o. Everything compiles but when it links I get undefined reference errors for RtccReadTimeDate_v1, RtccSetAlarmRpt_v1, RtccSetChimeEnable_v1, RtccWriteTime_v1, RtccInitClock_v1, RtccWrOn_v1.

In my MPLAB8 C30 project I don't see where I specify any libraries that would contain these functions. SO I do not know how it knows where to get them.

In the MPLABX XC16 project I tried including both the libpPIC24Fxxx-coff.a and libpPIC24Fxxx-elf.a files but neither worked.

I am using MPLAB 8.80, C30 3.30, MPLABX 4.15 and XC16 1.33.

I have searched thru the forums and cannot find anything that solves this for me. What do I need to do to solve this?

更多回帖

发帖
×
20
完善资料,
赚取积分