The ENET1 module does not function unless the Peripheral control register (MC_ME_PCTL6) is enabled

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

The ENET1 module does not function unless the Peripheral control register (MC_ME_PCTL6) is enabled

跳至解决方案
1,276 次查看
H-chips
Contributor III

工程文件:lwip_mpc5748g

开发板型号:2018 NXP B.V. MPC5748G-GW

按照 MPC5748G-GW-RDB_ExampleCodes-UserGuide中的步骤来进行ENET1的开发example.png

但是当前连PING也不通过,通过论坛里的一些相关回答,尝试了在PC上增加ARP表,但是仍然PING不通,此时在翻阅文档时发现有标注错误问题,但是通过查看寄存器说明,不是很理解这里说的enable是指做出什么样的设置。

ERROR.png

 

MPC5748G-GW-RDB 

0 项奖励
回复
1 解答
1,250 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

it is done in MC_ME which allows peripheral clock gating control based on the ME_RUN_PC0…7, ME_LP_PC0…7,
and ME_PCTLn registers. So the errata say you need to enable clock for MLB0 module too, so contig one of ME_RUN_PC0…7 and ME_PCTL6 and do Mode Transition. Refer to chapter Mode Entry Module (MC_ME) of the device RM for more info.
If using SDK in your project it should be enough to enable MLB0 clock within clock component and regenerate PE code. CLOCK_SYS_Init and CLOCK_SYS_UpdateConfiguration called in code should set MC_ME registers accordingly.
In debugger you can check MC_ME_PS0 to know MLB0 clock is active.

BR, Petr

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,251 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

it is done in MC_ME which allows peripheral clock gating control based on the ME_RUN_PC0…7, ME_LP_PC0…7,
and ME_PCTLn registers. So the errata say you need to enable clock for MLB0 module too, so contig one of ME_RUN_PC0…7 and ME_PCTL6 and do Mode Transition. Refer to chapter Mode Entry Module (MC_ME) of the device RM for more info.
If using SDK in your project it should be enough to enable MLB0 clock within clock component and regenerate PE code. CLOCK_SYS_Init and CLOCK_SYS_UpdateConfiguration called in code should set MC_ME registers accordingly.
In debugger you can check MC_ME_PS0 to know MLB0 clock is active.

BR, Petr

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-1953156%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3EThe%20ENET1%20%20module%20does%20not%20function%20unless%20the%20Peripheral%20control%20register%20(MC_ME_PCTL6)%20is%20enabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1953156%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%B7%A5%E7%A8%8B%E6%96%87%E4%BB%B6%EF%BC%9Alwip_mpc5748g%3C%2FP%3E%3CP%3E%E5%BC%80%E5%8F%91%E6%9D%BF%E5%9E%8B%E5%8F%B7%EF%BC%9A2018%20NXP%20B.V.%20MPC5748G-GW%3C%2FP%3E%3CP%3E%E6%8C%89%E7%85%A7%26nbsp%3BMPC5748G-GW-RDB_ExampleCodes-UserGuide%E4%B8%AD%E7%9A%84%E6%AD%A5%E9%AA%A4%E6%9D%A5%E8%BF%9B%E8%A1%8CENET1%E7%9A%84%E5%BC%80%E5%8F%91%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22example.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22example.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298767i59713224914D2110%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22example.png%22%20alt%3D%22example.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E4%BD%86%E6%98%AF%E5%BD%93%E5%89%8D%E8%BF%9EPING%E4%B9%9F%E4%B8%8D%E9%80%9A%E8%BF%87%EF%BC%8C%E9%80%9A%E8%BF%87%E8%AE%BA%E5%9D%9B%E9%87%8C%E7%9A%84%E4%B8%80%E4%BA%9B%E7%9B%B8%E5%85%B3%E5%9B%9E%E7%AD%94%EF%BC%8C%E5%B0%9D%E8%AF%95%E4%BA%86%E5%9C%A8PC%E4%B8%8A%E5%A2%9E%E5%8A%A0ARP%E8%A1%A8%EF%BC%8C%E4%BD%86%E6%98%AF%E4%BB%8D%E7%84%B6PING%E4%B8%8D%E9%80%9A%EF%BC%8C%E6%AD%A4%E6%97%B6%E5%9C%A8%E7%BF%BB%E9%98%85%E6%96%87%E6%A1%A3%E6%97%B6%E5%8F%91%E7%8E%B0%E6%9C%89%E6%A0%87%E6%B3%A8%E9%94%99%E8%AF%AF%E9%97%AE%E9%A2%98%EF%BC%8C%E4%BD%86%E6%98%AF%E9%80%9A%E8%BF%87%E6%9F%A5%E7%9C%8B%E5%AF%84%E5%AD%98%E5%99%A8%E8%AF%B4%E6%98%8E%EF%BC%8C%E4%B8%8D%E6%98%AF%E5%BE%88%E7%90%86%E8%A7%A3%E8%BF%99%E9%87%8C%E8%AF%B4%E7%9A%84enable%E6%98%AF%E6%8C%87%E5%81%9A%E5%87%BA%E4%BB%80%E4%B9%88%E6%A0%B7%E7%9A%84%E8%AE%BE%E7%BD%AE%E3%80%82%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ERROR.png%22%20style%3D%22width%3A%20864px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ERROR.png%22%20style%3D%22width%3A%20864px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298770i4AA033C11D9226C1%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22ERROR.png%22%20alt%3D%22ERROR.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FMPC5748G-GW-RDB%2Fpd-p%2FMPC5748G-GW-RDB%22%20class%3D%22lia-product-mention%22%20data-product%3D%222405-1%22%20target%3D%22_blank%22%3EMPC5748G-GW-RDB%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E