就是出厂的唯一ID怎么通过软件读取,
Susan Yang:
您可以通过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;
YiKai Chen:
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);