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.

LAUNCHXL-CC1352P: How to read factory configuration registers?

Part Number: LAUNCHXL-CC1352P

How to read the values from 'MAC IEEE 802.15.4 Address' registers in FCFG?

I tried:

uint32_t mac_addr_lsb = HWREG(FCFG1_BASE + MAC_15_4_0);
uint32_t mac_addr_msb = HWREG(FCFG1_BASE + MAC_15_4_1);
// And:
uint32_t mac_addr_lsb = HWREG(FCFG1_BASE + FCFG1_O_MAC_15_4_0);
uint32_t mac_addr_msb = HWREG(FCFG1_BASE + FCFG1_O_MAC_15_4_1);

"#20 identifier "MAC_15_4_0" is undefined" and so on.

The example from where i try to read them is rfWakeOnRadioRx.

I guess i need to add some header, but what?

I've tried to search a header locally where these would be defined.

I'm new to TI. Using CCS 11.1.0.00011 on Windows 10.

Cheers

  • Hi Turo,

    The FCFG registers can be read by including this header. 


    #include DeviceFamily_constructPath(inc/hw_fcfg1.h)


    You can see the defines of the registers in this file. 

    The path to these files relative to the SDK is 

    SDK\source\ti\devices\cc13x2_cc26x2\inc

    Regards,
    Siddanth