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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,275 Views
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 Kudos
Reply
1 Solution
1,249 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
1,250 Views
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 Kudos
Reply
%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%3EProject%20file%3A%20lwip_mpc5748g%3C%2FP%3E%3CP%3EDevelopment%20board%20model%3A%202018%20NXP%20BV%20MPC5748G-GW%3C%2FP%3E%3CP%3EFollow%20the%20steps%20in%20MPC5748G-GW-RDB_ExampleCodes-UserGuide%20to%20develop%20ENET1%20%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%3EHowever%2C%20even%20PING%20is%20not%20working%20at%20present.%20I%20have%20tried%20to%20add%20ARP%20table%20on%20PC%20according%20to%20some%20relevant%20answers%20in%20the%20forum%2C%20but%20PING%20is%20still%20not%20working.%20At%20this%20time%2C%20I%20found%20that%20there%20were%20marking%20errors%20when%20reading%20the%20document%2C%20but%20after%20checking%20the%20register%20description%2C%20I%20did%20not%20quite%20understand%20what%20kind%20of%20setting%20is%20meant%20by%20enable%20here.%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%3CLINGO-SUB%20id%3D%22lingo-sub-1953687%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20The%20ENET1%20%20module%20does%20not%20function%20unless%20the%20Peripheral%20control%20register%20(MC_ME_PCTL6)%20is%20enab%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1953687%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Eit%20is%20done%20in%20MC_ME%20which%20allows%20peripheral%20clock%20gating%20control%20based%20on%20the%20ME_RUN_PC0%E2%80%A67%2C%20ME_LP_PC0%E2%80%A67%2C%3C%2FSPAN%3E%3CBR%20clear%3D%22none%22%20%2F%3E%3CSPAN%3Eand%20ME_PCTLn%20registers.%20So%20the%20errata%20say%20you%20need%20to%20enable%20clock%20for%20MLB0%20module%20too%2C%20so%20contig%20one%20of%26nbsp%3BME_RUN_PC0%E2%80%A67%20and%26nbsp%3BME_PCTL6%20and%20do%20Mode%20Transition.%20Refer%20to%20chapter%20Mode%20Entry%20Module%20(MC_ME)%20of%20the%20device%20RM%20for%20more%20info.%3C%2FSPAN%3E%3CBR%20clear%3D%22none%22%20%2F%3E%3CSPAN%3EIf%20using%20SDK%20in%20your%20project%20it%20should%20be%20enough%20to%20enable%20MLB0%20clock%20within%20clock%20component%20and%20regenerate%20PE%20code.%26nbsp%3BCLOCK_SYS_Init%20and%26nbsp%3BCLOCK_SYS_UpdateConfiguration%20called%20in%20code%20should%20set%20MC_ME%20registers%20accordingly.%3C%2FSPAN%3E%3CBR%20clear%3D%22none%22%20%2F%3E%3CSPAN%3EIn%20debugger%20you%20can%20check%26nbsp%3BMC_ME_PS0%20to%20know%20MLB0%20clock%20is%20active.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EBR%2C%20Petr%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E