Error in RT 1020 Ethernet Example

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

Error in RT 1020 Ethernet Example

928 次查看
mjbcswitzerland
Specialist V

Hi All

I was taking a look at the evkmimxrt1020_enet_txrx_transfer reference to check out the clocking configuration and noticed that it doesn't generate the 2.5MHz MDC clock speed that is stated in the code:


/*! @brief MDC frequency. */
#define ENET_MDC_FREQUENCY 2500000U


but instead generates about 1.7MHz

    /* Set SMI to get PHY link status. */
    sysClock = CORE_CLK_FREQ;
    status = PHY_Init(EXAMPLE_ENET, EXAMPLE_PHY, sysClock);

The error is at the line above in red.
The core clock is not the correct clock. It should be IPG clock instead.

The reference works by chance because the value calculated overflows from the calculated 100 (which is not possible) to 72. IPG is core/4 in the reference (150MHz) and so the 1.7MHz MDC happens to be generated.

That is, it physically works but uses incorrect clock assignment.

Regards

Mark

标签 (1)
标记 (1)
1 回复

826 次查看
victorjimenez
NXP TechSupport
NXP TechSupport

Hello, Mark

Thanks for catching this! I will report it with the SDK team so they can fix it on future releases. 

Regards, 

Victor