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/TM4C1290NCZAD: TIDA-00203 Programming MAC Address

Part Number: TM4C1290NCZAD
Other Parts Discussed in Thread: TIDA-00203, UNIFLASH

Tool/software: Code Composer Studio

Hello,

We are a systems integrator and had our Contact Manufacturer build TIDA-00203 CAN to Ethernet Boards. We have the can2enet demo programmed into each board and working. Each board does not have a MAC address. My question is:

1) Where do we get MAC addresses for these boards? Do we need need to go to  http://standards.ieee.org/develop/regauth/oui36/index.html 

MAP_EMACAddrSet(EMAC0_BASE, 0, (uint8_t *)pucMACAddr); from within Can2enet.c? Will that work?

b) Can we use UniFlash or LM Flash Programmer to program the MAC through the JTAG (right now USB is disabled since we flashed can2enet on each board and this demo does not enable USB). It looks like you can user "Other Utilities" under LM Flash Programmer to program a MAC. What "interface" do I choose for JTAG? Can we do it from UniFlash?

Please provide a couple of easy options for our end customer to program the MAC programatically from within can2enet.c and from LM Flash Programmer/Uniflash over JTAG? Or others?

Kind Regards,

Todd

  • Hi Todd,

    1.    Yes, your understanding is correct that for a custom design the MAC address must come from the pool of allocated MAC address to the organization/company. Yes, you can use EMACAddrSet()

    2. You can also use Uniflash over JTAG as well as LM Flash programmer.

  • Thank you Charles. We were able to program the User Register 0 and 1 with the MAC address! One thing we noticed is that once you go from a 1 to a 0 in a bit field you cannot go back to a 1. If we write all 0's to these registers we cannot ever write to these registers again. Is there a way to perform and erase operation on the user flash registers and get them back to 0xFFFFFFFF?
  • Hi Todd,
    The User Register 0/1 are non-volatile. You will need to restore to factory setting by performing Unlock in which case the entire device will be erased including the two registers. You can do this in the "Other Utilities" tab of the LM Flash Programmer.