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.

How program MAC address only through SmartRFProgConsole for CC2541?

Other Parts Discussed in Thread: CC2541

Hi all,

SmartRFProgConsole can just write the secondary MAC address for CC2541 not include program image.

I try the command line for this but it's not workable.

SmartRFProgConsole.exe S P WI(F=0,I=11.22.33.44.55.66)

or

SmartRFProgConsole.exe S WI(F=0,I=11.22.33.44.55.66)

What is the right command line for wirte MAC address only?Can support this?

Best Regards,

Ethan Chen

  • Hello Chen,

    What kind of command is WI? If you simple run the SmartRFProgConsole.exe in your console you will get the possible actions listed:

    Actions to perform: [P][EP][EPV][EPVC][PV][PVC][V][R][RP][EP][WP][CE]

    P Program (all targets)
    EP Erase and program (all targets)
    EPV Erase, program and verify (all targets)
    EPVC Erase, program and verify (CRC each page=>faster) (only target S)
    PV Program (append) and verify (only target S)
    PVC Program and verify (CRC each page=>faster) (only target S)
    V Verify against hex or hem file (targets S, AS, B
    VC Verify against hex or hem file (CRC each page=>faster) (targets S, AS, B
    R Read into hex file (only target S)
    RP= Read flash page into binary file (only target S)
    EP= Erase flash page (only target S)
    WP= Write flash page from binary file (only target S)
    EWP= Erase and Write flash page from binary file |(only target S)
    CE Full chip erase (only target S)

    You will have to read the flash page, modify it and then write it back to be able to update the secondary MAC address. Unfortunately there is not a direct commend to do this.

  • Hi Eirik V,

    Thanks your reply.

    Actually, I amtry this follow below description

    //----------------------------------------------------------------------------------------------------------------------------

    IEEE MAC address related options [KI(F=f)] [RI(F=f,[PRI][SEC])] [WI(F=f,I=i)]
    (only CC243x, CC253x and CC254x)
    KI(F=f)     Keep the IEEE MAC address currently on the chip when programming it
    RI(F=f,[PRI][SEC]) Read out the IEEE MAC address currently on the chip
           For devices with both a primary and a secondary address, the option "PRI"
           or "SEC" can be used to specify which to read. "PRI" is default.
    WI(F=f,I=i) Write the given IEEE MAC address to the chip when programming it
    f     The chip's flash size in kB (only used for CC243x)
          CC243x:  32, 64, or 128  (determines the location of the IEEE address)
          CC253x, CC254x:  set to 0        (not used)
    i     IEEE MAC address to write in hexadecimal format, separated
          with dots (e.g. 00.12.4B.00.00.00.00.01).
          8 bytes for CC243x and CC253x, and 6 bytes for CC254x.

    //----------------------------------------------------------------------------------------------------------------------------

    Our customer think just write BDA without program FW at the same time like the smartRF flash programmer GUI that will reduce many time for some manufacture demand

    Can TI support it at console command?

    Thank you.

    Ethan Chen

  • Hello Ethan,

    Ahh, I did not use my eyes. The WI command can only be used when piped/added as an argument to the programming commands. So you can for example do the following to add your secondary address to a hex file when using the EPVC, EPV or EP commands. I think the GUI version is reading out the last page, modifying the content of that and writing it back.

    Command:

    S EPVC F="C:\Texas Instruments\BLE-CC254x-1.4.0\Accessories\H
    exFiles\CC2541_SmartRF_SimpleBLEPeripheral.hex" WI(F=0,I=AC.ED.00.00.C0.DE)

    Texas Instruments SmartRF Flash Programmer v1.13.7-no-mfc
    ---------------------------------------------------------

    0224: Modifying flash image with IEEE MAC addr...
    0224: Erasing entire flash...
    0224: Programming flash.........................................................
    .........................
    0224: Verifying flash (pagewise CRC check)......................................
    .....................
    0224: Erase, program and verify (CRC) OK

  • Hi Ethan,

    I can just confirm what Eirik already described for the GUI application about how the MAC address is programmed. Like Eirik have described this is only supported by the console programmer by doing read, modify and write of the applicable flash page. Unfortunately we don't have any immediate plan to change this in the near future. It has been considered to save time doing both programming of the application image and the MAC addresses at the same time. Offcourse this might not be the best solution for all customers though.

    Regards,
    Øyvind

  • Hi Øyvind & Eirik,

    Thanks your reply that will helpful for our customer.

    Ethan