Error in RT 1020 Ethernet Example

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Error in RT 1020 Ethernet Example

752件の閲覧回数
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 返信

650件の閲覧回数
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