CC2541 如何读取secondary mac地址
时间:10-02
整理:3721RD
点击:
如何在程序内读取写入到secondary 的mac 地址?
256K flash存储器分成8个bank,把所在bank映射到sram ,
XREG(adress);adress范围0x8000-0xffff
若是您使用HCI_ReadBDADDRCmd()读mac addr,如果有secondary 地址,就是secondary 的值,否则是primary的值。
The secondary IEEE address is stored in the uppermost flash page at address 0x7EA from the start of the page. That means that it is readable from XDATA memory at address 0xFFEA when the uppermost flash bank is selected through MEMCTR.XBANK. The uppermost flash bank is 3 for a CC2540F128 and 7 for a CC2540F256.
你用flash programmer改了secondary address后,gapRole_bdAddr里就是secondary 的地址。