MAC Address

Solved
Massimo's picture
Massimo
Junior(0)

Hello,
where are the MAC addresses for Wifi and Bluetooth stored?
Is the module shipped with pre-programmed MAC addresses for Wifi and BT, or shall they be progreammed by the user?

Thanks,
Massimo

PeterF's picture
PeterF
Moderator(14)

The default WLAN MAC address for each module is sourced from OTP memory (ie. factory assigned, unique for each device) . 
WICED SDK does however allow the user to override this by writing a custom MAC address to the Device Configuration Table (DCT) memory. 

 

Refer to Broadcom WICED-AN800-R Factory Programming Application Note.pdf document for more info on this topic (For your convenience this document attached below)

 

A unique per-device MAC address may be specified in the DCT as described in Section 3.1. To direct WICED and the WLAN chip to use the MAC addressed located in the DCT, it is necessary to define a global variable in the application makefile.

 

eg. Using temp_control app as an example: 
add the following global define

GLOBAL_DEFINES := MAC_ADDRESS_SET_BY_HOST

into to this project's makefile, located in WICED SDK at: 
<WICED-SDK>/App/demo/temp_control/temp_control.mk

dapeters's picture
dapeters
Junior(0)

The attached document refers to SDK 2.4.0.  Some of the files referred to in the document do not exist in SDK 3.7.0.  Is there an updated document that talks about using custom MAC addresses in a device?