Your question is not clear. Are you specifically looking for OpenOCD command to read the MAC address of the device even before the application is run? Please clarify.
You can use the function wwd_wifi_get_mac_address( &mac, WWD_STA_INTERFACE ) in the application code to obtain the MAC address. Then run the debugger and use breakpoint debugging to find the MAC address in the variables table.
Yes. Before the application is run. I was hoping I could use OpenOCD to read the specific location in memory that the MAC address is stored in and print it out. My other option is to program the application into the device and read the MAC address from the debug port that we are using.
1 of 1 people found this helpful
AFAIK, MAC address is programmable and does not stick to a particular chip.
However, if you work on chips with STM MCUs there is unique ID for each chip.
I haven't tried this before, but you may be interested :
Similarly MCU internal flash can be read as well (assume you know the position in DCT) :
Please kindly share your results, appreciated.