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.

CC1352P: J-FLASH and Programming IEEE MAC Address

Part Number: CC1352P
Other Parts Discussed in Thread: Z-STACK, UNIFLASH,

Our production facility is using J-LINK and J-FLASH to program our devices.  They are having problems figuring out how to change the "Secondary IEEE Address" .  Os there a specific memory address that they write to?  Do you have any info on how this is done?  

  • Hey Bill,

    The primary IEEE address location is 0x500012F0 and the secondary IEEE address location is 0x50004FC8.  In Z-Stack they are given as (uint8_t *)(FCFG1_BASE + EXTADDR_OFFSET) and (__ccfg.CCFG_IEEE_MAC_0) respectively as shown in the main function.

    Regards,
    Ryan

  • Hey Ryan,

    We'll give this a try. 

    But where is this documented?  I see in the Technical Reference Manual that the Secondary Address is at offest 0x1fC8  [section 11.2.1],  and working backward from your info, the the base address should be 0x50003000.  I then search for that address and found it in hw_memmap.h as 

    #ifndef CCFG_BASE
    #define CCFG_BASE 0x50003000 // CCFG
    #endif

    Then, I've also discovered that __ccfg isn't defined in our app, but it is in the BIM's.  Its not referenced in the BIM, but its located in the BIMs map at:

    00057fa8 __ccfg

    ...which is controlled by its .cmd linker file.

    SECTIONS
    {
    .intvecs : > FLASH_BIM_START
    .text : > FLASH_BIM
    .const : > FLASH_BIM
    .constdata : > FLASH_BIM
    .rodata : > FLASH_BIM
    .cinit : > FLASH_BIM
    .pinit : > FLASH_BIM
    .init_array : > FLASH_BIM
    .emb_text : > FLASH_BIM
    .cert_element : > FLASH_CERT
    .fnPtr : > FLASH_FNPTR
    .ccfg : > FLASH_CCFG (HIGH)

    When I use uniflash to change the Secondary IEEE, it seems to be changing at 0x00057fa8,  Is this somehow magically being mapped from 0x50004FC8?  Or should the factory actually be writing to 0x00057fa8 instead?

    I'm so confused!

  • Hey Bill,

    I'm sorry for your confusion and agree that the documentation could be improved to make this more clear.  IEEE MAC Address 0/1 from section 11.2.1 of the TRM only refers to the primary IEEE address as it is 16 bytes long.  The CCFG does not move from the last page of flash regardless of whether the BIM is involved, however in this case they are linked: http://dev.ti.com/tirex/content/simplelink_cc13x2_26x2_sdk_3_40_00_02/docs/zigbee/html/oad-secure/flash-layout-off-chip.html 

    I've verified in Uniflash that the secondary IEEE address is stored at 0x50004FC8 for CC1352P ZED SW OTA + BIM projects but cannot say the same for 0x00057fa8.

    Regards,
    Ryan