MPLAB:3.35,XC32∶1.42,和声:1.08,芯片:PIC32 MZ1024ECM064 HI大家,我是新的和谐和PIC的发展一般。不知您是否能给我一个关于配置问题的见解。我已经启动了一个新项目,并且添加了:TCPIP堆栈和内部以太网MAC驱动程序,使用H
ARMony。没有做其他更改。当我编译和运行RD9管脚时,这个管脚被拉低。移除这两个模块可以恢复RD9引脚。问题是为了其他目的,我需要那个引脚。我在tcpip_manager.c:if(!(*pNet.->pMacObj->TCPIP_MAC_EventMaskSet)(pNet.->hIfMac,TCPIP_STACK_MAC_ALL_EVENTS,true))这是在system_init.c中的TCPIP_STACK_Init()期间触发的。在所有初始化完成之后,我试过以下行:PLIB_PORTS_PORTS_PinDirec
tionInputSet(PORTS_ID_0,PORT_CHANNEL_D,PORTS_InVENTS_C)。但这并不改变PIN的状态。这条线在我的其他和声项目中很好。我使用一个范围来验证RD9的状态。我使用定制的硬件来运行项目。我已经用那个引脚成功地构建并运行了其他的和谐项目,但是同样地,没有tcpip堆栈。有什么想法吗?
以上来自于百度翻译
以下为原文
MPLAB:3.35, xc32:1.42, Harmony:1.08, chip:PIC32MZ1024ECM064
Hi everyone,
I'm new to Harmony and PIC development in general. I wonder if you can give me an insight into a configuration issue.
I've started a new project and added: TCPIP Stack and Internal Ethernet MAC Driver to the project using Harmony.
No other changes were made.
When I compile and run the RD9 pin is pulled low. Removing those two modules restores RD9 pin.
Problem is I need that pin for other purposes.
I've tracked the pin change down to line 817 in tcpip_manager.c:
if(!(*pNetIf->pMacObj->TCPIP_MAC_EventMaskSet)(pNetIf->hIfMac, TCPIP_STACK_MAC_ALL_EVENTS, true))
This is triggered during the TCPIP_STACK_Init() in system_init.c.
I've tried the following line after all the initialization is done:
PLIB_PORTS_PinDirectionInputSet(PORTS_ID_0, PORT_CHANNEL_D, PORTS_BIT_POS_9);
But that doesn't change the state of the pin. That line works fine in my other harmony projects.
I'm using a scope to verify the state of RD9. I'm using custom hardware to run the project.
I have successfully built and ran other harmony projects with that pin, but again, without the tcpip stack.
Any ideas?