CC2640R2或者CC1310的芯片的唯一ID怎么读取

就是出厂的唯一ID怎么通过软件读取,

2 个回复

  • 您可以通过Flash Programmer 2来获取ID

    另外您也可以通过以下代码读取MAC IEEE 802.15.4地址:

    #include <inc/hw_fcfg1.h>

    uint64_t macAddrLsb = HWREG(FCFG1_BASE + FCFG1_O_MAC_15_4_0);
    uint64_t macAddrMsb =HWREG(FCFG1_BASE + FCFG1_O_MAC_15_4_1);
    uint64_t macAddress = (uint64_t)(macAddrMsb << 32) + macAddrLsb;

     

    若是该回复回答了您的问题,请点击“确认此为答案”,谢谢

    If a post answers your question, please mark it with the "verify answer" button.

  • CC2640R2的BLE MAC可以透過下列的方式

    uint32_t * addrPtrLsb = (uint32_t *)(FCFG1_BASE + FCFG1_O_MAC_BLE_0);
    uint32_t * addrPtrMsb = (uint32_t *)(FCFG1_BASE + FCFG1_O_MAC_BLE_1);

    YK Chen

    如果回复解决了问题,请帮忙点击确认此为答案,谢谢