Microchip
直播中

李斌

7年用户 1371经验值
私信 关注
[问答]

怎么从ech pic32转换为efh pic32

我试图把一个项目从PIC32 MZ2048 ECH144芯片转换成PIC32 MZ2048 EFH144芯片,当我这样做时,我得到编译器错误。编译器抱怨它找不到SIDL定义:..…//..…///Fruts/外设/端口/处理器/PursSpP32 MZ2048 EFH144。我在PIC32 MZ2048 EFH.H文件中查找但未找到定义。我运行MPLAB V3.45,XC32 V1.42,和声V1.10。不确定如何着手解决这个问题。如有任何帮助,我们将不胜感激。

以上来自于百度翻译


      以下为原文

    I am attempting to convert a project from a pic32mz2048ech144 chip to a pic32mz2048efh144 chip and I am getting compiler errors when I do so.

The compiler is complaining that it can not find the SIDL defines:
../../../../../framework/peripheral/ports/processor/ports_p32mz2048efh144.h:3291:20: error: '_CNCONA_SIDL_MASK' undeclared (first use in this function)

I looked in the pic32mz2048efh.h file but was unable to locate the define.

I am running MPLAB v3.45, xc32 v1.42, and HARMONY v1.10.

Not sure how to go about fixing the issue. Any help would be appreciated.

回帖(3)

杨叶

2019-4-3 07:48:36
嗨,你为PIC32 MZ EF代码再生了吗?当做

以上来自于百度翻译


      以下为原文

    Hi,
did you regenerate the code for PIC32MZ EF ?
Regards
 
举报

李星星

2019-4-3 08:02:31
你好,AATencio,下面的错误与CNCONA SFR的SIDL位有关。错误:'OnCNCONAYSIDLILM掩膜'未声明(在这个函数中的第一次使用)PFA,参照以下链接下载的PIC32 MZ EF设备的数据表,确认“SIDL”位不存在于“CNCONA”SFR。ADS/En/DeVICEOC/6000 1320D.PDRAN必须在“PursSpP32 MZ2048 EFH144.h”文件中删除与SIDL位有关的引用,从而解决编译问题:以下步骤:“CnCONA”位的“SIDL”位用于PosisSoxEnoTeCiDeLePiPurtReal5.H.Tunl在“PosisSp32 MZ2048 EFH144.h”文件中,将所有与“CexEnoTeCiDeNeLePiPrIP”相关的API更改为“默认”到“不支持”。对于EX:“PosisSoxOnoTeCeIdEnPielPosial.Health.h”要更改为“PosisSoxEnooTeCeIdIelPrPursixUpFult”。3个API需要更改。与“CuneNoTeCeIdIelPrPurt”相关的函数。在“PosisSp32 MZ2048 EFH144.h”文件中搜索“iN-IDLE”字并删除所有内联函数。40个内联函数将被删除。希望这有助于您的要求。

以上来自于百度翻译


      以下为原文

    Hi AATencio,
 
Following error is related to SIDL bit of CNCONA SFR.
error: '_CNCONA_SIDL_MASK' undeclared (first use in this function)
 
PFA, referring to datasheet of PIC32MZ EF device downloaded form following link, confirms that "SIDL" bit is not present in "CNCONA" SFR.
http://ww1.microchip.com/downloads/en/DeviceDoc/60001320D.pdf
 
All the references related to SIDL bit has to be removed in "ports_p32mz2048efh144.h" file, so that the compiler issue will go off.
 
Following steps helps to solve the compilation issue:
- SIDL bit of "CNCONA" bit is used in ports_ChangeNoticeInIdlePerPort_Default.h template file.
In "ports_p32mz2048efh144.h" file, Change all the API's related to "ChangeNoticeInIdlePerPort" from Default to Unsupported.
For Ex: "ports_ChangeNoticeInIdlePerPort_Default.h" to be changed to "ports_ChangeNoticeInIdlePerPort_Unsupported.h"
3 more API's need to be changed.
 
- Delete all Inline Functions related to "ChangeNoticeInIdlePerPort".
Fot this search for "IN_IDLE" word in "ports_p32mz2048efh144.h" file and delete all the Inline functions.
40 Inline functions to be deleted.
 
Hope this helps your requirement.
 
Regards,
Mvns_in
   Attached Image(s)

举报

陈晨

2019-4-3 08:30:56
我很困惑为什么要编辑和声文件来修复这个问题。PIC32 MZ2048 EFH144在我以前没有看到过,或者听说过这个问题之前添加了很多版本。

以上来自于百度翻译


      以下为原文

    I am confused about why Harmony Files need to be edited to fix this.
The PIC32mz2048efh144 was added many versions ago ans I have not seen, or heard of this issue.
举报

更多回帖

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