ENET_get_mac_address bug?

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

ENET_get_mac_address bug?

1,120 次查看
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?

标签 (1)
0 项奖励
回复
2 回复数

834 次查看
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 项奖励
回复

834 次查看
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 项奖励
回复