TI中文支持网
TI专业的中文技术问题搜集分享网站

CC1310: CC1310 15.4 sensor MAC debug macAddrLsb Expression Value 为0 没有数据

Part Number:CC1310

HI    CC1310  15.4    simplelink_cc13x0_sdk_4_20_00_05   / sensor MAC 添加代码如下,其他未做任何更改

sensor   79 行 –85行 代码

#include "hw_memmap.h"
#include "hw_fcfg1.h"
#include "hw_types.h"

uint64_t macAddrLsb;
uint64_t macAddrMsb;
uint64_t macAddress;

427–429 行 代码 

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

 —》debug—》Expressions     macAddrLsb   / macAddrMsb / macAddress  Value为 0X0000000000

Q1.麻烦请分析下原因是代码错误  还是HWREG函数未起作用。

Q2.如何正确debug—》Expressions   macAddrLsb   / macAddrMsb / macAddress 显示 MAC值

谢谢

Shuyang Zhong:

在CC1310 LaunchPad上用您的代码,可以正确读到MAC地址:

换一个地方加断点试试?

Best regards,

Shuyang

,

likang LI:

Thank you  , 谢谢指导 

F8 Resume  中断操作后  ,已有 MAC 

赞(0)
未经允许不得转载:TI中文支持网 » CC1310: CC1310 15.4 sensor MAC debug macAddrLsb Expression Value 为0 没有数据
分享到: 更多 (0)