完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
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? |
|
相关推荐
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. |
|
|
|
我没有意识到这一点的含义。非常感谢!
以上来自于百度翻译 以下为原文 I was not aware of the implications of that point. Thanks a lot! |
|
|
|
只有小组成员才能发言,加入小组>>
5244 浏览 9 评论
2035 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3214 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2261 浏览 5 评论
779浏览 1评论
673浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
599浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
683浏览 0评论
580浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 18:46 , Processed in 1.481091 second(s), Total 80, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号