This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

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

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

  • 您可以通过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;
  • 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);