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.

CC2538 info page

Other Parts Discussed in Thread: CC2538

Hello,

I search more information about info page of CC2538, I haven't find any documentations about this page.
More precisely about primary IEEE MAC address, if I read it with SmartRF programmer I obtain 04 0E F1 80 00 12 4B 00 (the TI OUI is 00 12 4B) why is it on middle of MAC @ ?

  • Which version of SmartRF Flash Programmer are you using? We recently fixed a bug related to the byte ordering of the primary MAC address in the info page.

  • Thanks a lot, with the last version (1.4) the MAC address is in ordering.

    otherwise, I search some informations about this page, beacause I try to modify the secondary address (in code ) and it doesn't work (probably I have forget to do something)
    When I do that with SmartRF Flash programmer It work fine.

    With my code, I want to change the first byte:
    printf(" val : %x \n", ((uint8_t *)IEEE_ADDR_LOCATION_SECONDARY)[0]);
    ((uint8_t *)IEEE_ADDR_LOCATION_SECONDARY)[0]=0xbb;
    printf(" val : %x \n", ((uint8_t *)IEEE_ADDR_LOCATION_SECONDARY)[0]);
    printf(" val : %x \n", ((uint8_t *)IEEE_ADDR_LOCATION_SECONDARY)[0]);

    the first line display my old value ==> 0xaa
    the second printf display my new value ==> 0xbb
    the third printf display the old value ==>0xaa

    I don't know why.

  • The secondary MAC address is located in flash, so you need to use some of the flash write and/or erase functions to modify the value. Remember that when you're modifying a value in flash, you need to erase (the page) to change a bit from 0 to 1.