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.

CCS/UNIFLASH: uniflash command line to program mac address

Part Number: UNIFLASH
Other Parts Discussed in Thread: TM4C129ENCPDT

Tool/software: Code Composer Studio

Hi,

   How to use uniflash command line to program mac address for tm4c129encpdt, thank you!

  • Hi,

    Which version of UniFlash are you using? There were some changes to the command line between v3 and v4, so I want to make sure I'm providing relevant information for the version you are using.

    Thanks,

    Ricky

  • Hi Ricky,
    Thank your reply!
    I want to use uniflash_3.4 to program mac address,thank you!
  • Can you try the following command?

    uniflash -ccxml <pathToYourCCXML> -setOptions FlashMACAddrInput=AA-BB-CC-DD-EE-FF -operation ProgramMACAddress

    The CCXML can be generated from the GUI first if you don't have one already for your configuration. You can also add 'FlashMACAddrCommit=1' in the -setOptions section if you want to commit your MAC address.

    Please let me know if you have any questions on this.

    Thanks,
    Ricky
  • Hi Ricky,

    I have tried to program mac address use command line,and can read out the mac address use uniflash software .
    I have some other questions about the command line.
    1>.If the device have been programmed mac address,can program a new mac address use command line?
    2>.Can use command line to save the read out mac address to a file?
    Thank you!

    Best Regards
  • Hi,

    1. Yes, you can reprogram the MAC address as long as you have not committed the value. You can reset the value of the MAC address by power cycling the device. After that, you can use command line to program it again.

    2. There is no way to write just the MAC address to a file. But you can run a UniFlash command to read the mac address (via -operation ReadMACAddress) and pipe all of the output to a file. After that, you can write a script that parses out the MAC address by looking for the following output in the file.

    CORTEX_M4_0: MAC address value: AA-BB-CC-DD-EE-FF

    Thanks,
    Ricky