How to set a user ST67W611M1 MAC address

home.png Back to main page

Each ST67W611M1 module has a default MAC address that is defined in the factory and saved in the module's efuse. This MAC address is allocated to the module in Wi-Fi® station configuration. The Wi-Fi® soft access point mode's MAC address is based on the default MAC address with the local bit inverted. Bluetooth® LE mode's MAC address is equal to the default MAC address incremented by 1.

Example:

MAC address value
Wi-Fi® station / default 40:82:7B:00:0E:6D
Wi-Fi® soft access point 42:82:7B:00:0E:6D
Bluetooth® LE 40:82:7B:00:0E:6E

Customers can integrate the ST67W611M1 module in their product and retain/use its default MAC address. It is, however, possible for customers to define a different MAC address.

Two additional slots, MAC slot1 and MAC slot2 (the default MAC address is saved in slot0), are available, allowing the MAC address to be changed one or two more times.

Warning white.png Warning
This process must be performed with care, as each slot can only be written to once.

At boot, the system selects the most recent non-empty slot as the device’s MAC address. For out-of-factory modules, the system uses the value in slot0 (the default MAC address). If the customer has set a new value, the system selects slot1; if the customer has written to slot2, then slot2 is chosen.

1. Set user MAC Address

In the following example sequence, the new MAC address is 18:B9:05:DE:6C:75:

WEM 18:B9:05:DE:6C:75
LEM
SEM
REM

where:

Command Description
WEM <MAC Address> Writes the desired value into efuse buffer
LEM Reads the efuse buffer and should return the written value
SEM Writes the value into the efuse
REM Reboots the module and returns the active MAC address

As explained above, the programmed MAC address serves as the Wi-Fi® station (STA) MAC address. The Bluetooth® Low Energy (LE) MAC address is derived by incrementing this value by 1. To ensure unique MAC address allocation across both interfaces, customers provisioning multiple devices must increment the written MAC address by 2 for each successive module.