发 帖  
原厂入驻New
发烧友10周年庆典,全网超值优惠来袭!千元现金券,下单抽奖赶紧参与》》
[问答] TCPIP项目影响运行RD9管脚吗?
76 TCPIP 管脚
分享
MPLAB:3.35,XC32∶1.42,和声:1.08,芯片:PIC32 MZ1024ECM064 HI大家,我是新的和谐和PIC的发展一般。不知您是否能给我一个关于配置问题的见解。我已经启动了一个新项目,并且添加了:TCPIP堆栈和内部以太网MAC驱动程序,使用HARMony。没有做其他更改。当我编译和运行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_PinDirectionInputSet(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?
0
2019-7-12 15:58:00   评论 分享淘帖 邀请回答
2个回答
你知道勘误表7吗?它指出,MII引脚,通常不会使用在RMII模式,不释放。这可能是影响你的事情,我强烈建议搬到EF部分。他们没有近乎多的勘误表,这个问题不会存在,而且你也会有一个FPU。

以上来自于百度翻译


      以下为原文

    Are you aware of errata #7? It states that MII pins that, normally, wouldn't be in use in RMII mode, don't get released. This is probably what is affecting you.
 
I would highly recommend moving to the EF parts. They don't have near as many errata, this problem won't be there, and you'll have a FPU to play with as well.
2019-7-12 16:13:21 评论

举报

我没有意识到这一点的含义。非常感谢!

以上来自于百度翻译


      以下为原文

    I was not aware of the implications of that point.
Thanks a lot!
2019-7-12 16:18:31 评论

举报

只有小组成员才能发言,加入小组>>

46个成员聚集在这个小组

加入小组

创建小组步骤

关闭

站长推荐 上一条 /10 下一条

快速回复 返回顶部 返回列表