Burn Custom Mac
The espefuse.py burn_custom_mac
command burns a 48-bit Custom MAC Address.
Positional arguments:
MAC
. Custom MAC Address (CUSTOM_MAC
) to burn given in hexadecimal format with bytes separated by colons (e.g. AA:CD:EF:01:02:03)
Optional arguments:
--force-write-always
. Write the eFuse key even if it looks like it is already been written, or is write protected. Note that this option can’t disable write protection, or clear any bit which has already been set.
If CUSTOM_MAC
is placed in an eFuse block with a coding scheme and already has data then it is not possible to write new data without breaking the encoding. The correct way is to contact Espressif to order chips with CUSTOM_MAC
pre-burned from the factory. Another way is, it is not recommended, to use the --force-write-always
flag to ignore the encoding violation.
This command burns a few eFuse fields:
CUSTOM_MAC
CUSTOM_MAC_USED
= 1
> espefuse.py burn_custom_mac 48:63:92:15:72:16
=== Run "burn_custom_mac" command ===
- 'CUSTOM_MAC' (Custom MAC addr) 0x000000000000 -> 0x167215926348
Check all blocks for burn...
idx, BLOCK_NAME, Conclusion
[00] BLOCK0 is not empty
(written ): 0x0000000000000080
(to write): 0x0400000000000000
(coding scheme = NONE)
[01] BLOCK1 is empty, will burn the new value
.
This is an irreversible operation!
Type 'BURN' (all capitals) to continue.
BURN
BURN BLOCK1 - OK (write block == read block)
BURN BLOCK0 - OK (all write block bits are set)
Reading updated efuses...
Custom MAC Address: 48:63:92:15:72:16 (OK)
Successful
> espefuse.py summary
...
CUSTOM_MAC_USED (BLOCK0) Enable CUSTOM_MAC programming = True R/W (0b1)
CUSTOM_MAC (BLOCK1) Custom MAC addr
= 48:63:92:15:72:16 (OK) R/W