ENET_get_mac_address bug?

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

ENET_get_mac_address bug?

607 Views
rajbatra
Contributor IV

Looking at ENET_get_mac_address in fsl_enet_rtcs_adapter.c (KSDK 1.2), setting address[3] seems to have an extra '0' in the filter (see Red).

uint32_t ENET_get_mac_address(uint32_t device, uint32_t value, _enet_address address)

{

    uint8_t g_enetAddress[kEnetMacAddrLen] = ENET_DEFAULT_MAC_ADD;

    address[0] = g_enetAddress[0];

    address[1] = g_enetAddress[1];

    address[2] = g_enetAddress[2];

    address[3] = (value & 0xFF00000U)>>16;

    address[4] = (value & 0xFF00U) >> 8;

    address[5] = (value & 0xFFU);

    return ENET_OK;

}

Am I missing something?

Labels (1)
0 Kudos
2 Replies

321 Views
soledad
NXP Employee
NXP Employee

Hello Raj,

You are right, I will report this issue.

Thank you for your feedback.


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

321 Views
rajbatra
Contributor IV

Thanks Sol.

The other few bugs that seem to have been there for a while that would be good to keep on the radar (for my applications!):

(1) Printf unable to print floating point numbers: printf() with float values

(2) J-link breaking after KDS update: Unable to Debug after KDS Update

(3) DHCP renewal not working properly: migrate 4.1 -> 4.2 : issues with DHCP renewals and ipcfg_poll() linkdown/linkup

Thanks,

-Raj

0 Kudos