Skip to main content
rasheeda2
Associate
July 8, 2018
Question

STM32F217 MAC address programming with ST-Link V2

  • July 8, 2018
  • 8 replies
  • 2324 views
Posted on July 08, 2018 at 14:23

Hi,

How can i program a MAC address using ST-Link-V2. Thanks.

    This topic has been closed for replies.

    8 replies

    Tesla DeLorean
    Guru
    July 8, 2018
    Posted on July 08, 2018 at 14:57

    Could you write a small .HEX to a specific configuration location, or into the OTP area?

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    rasheeda2
    rasheeda2Author
    Associate
    July 8, 2018
    Posted on July 08, 2018 at 17:43

    Is this only way? it is going to tough for non engineers.

    I need to give facility to production to program MAC address in each board. Then he needs to modify the text file for each board.

    Tesla DeLorean
    Guru
    July 8, 2018
    Posted on July 08, 2018 at 17:59

    I'm sure there are a bunch of ways to solve this.

    Can't you automate text file modification?

    Could you provide some user interface or test mode on your device?

    Could you connect up the network, and pull a MAC address from a server?

    Do you have to use an ST-LINK, could you use some different JTAG/SWD pod, with automation libraries available?

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    rasheeda2
    rasheeda2Author
    Associate
    July 12, 2018
    Posted on July 12, 2018 at 14:53

    Following is response from st support team and it works...not a guess work like some people do

    In Reference manual RM0033, part 2.3.3 Embedded Flash memory, you can find address of OTP (one-time programmable) bytes for user data.

    In STM32 ST-Link Utility you can display and modify this part of memory.

    AvaTar
    Senior III
    July 12, 2018
    Posted on July 12, 2018 at 15:02

    In STM32 ST-Link Utility you can display and modify this part of memory.

    Pretty sure this is not fit for an automated environment.

    The method of patching or merging the HEX/S19 file is quite common.

    Another option would be to program the MAC address as a final step in the product test, with collaboration of the DUT.