Need to overwrite MAC Address into ESP32 Module

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Need to overwrite MAC Address into ESP32 Module

Postby Ritesh » Tue Oct 30, 2018 10:39 am

Hi ESP_Angus, WiFive and ESP32 SDK Developers,

We have one requirement into product in which we have already printed Enclosure with ESP32 STA/AP MAC Address and suddenly ESP32 Module got damaged due to some reason.

Now, We want to use same MAC Address after replacing ESP32 Module but we have checked that there is no any option to do it using esptool.py or other utility.

https://dl.espressif.com/doc/esp-idf/la ... dress.html

https://esp32.com/viewtopic.php?t=2182

I have checked that esp_base_mac_addr_set will set temporary for time being and it gets enter into default if we update firmware without adding that support

Would you guys please suggest us like is there any way to write MAC Address permanently using tool or script or any command?
Regards,
Ritesh Prajapati

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Need to overwrite MAC Address into ESP32 Module

Postby WiFive » Tue Oct 30, 2018 12:42 pm

No, it would have to be supported in every firmware. Just print a new sticker.

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Need to overwrite MAC Address into ESP32 Module

Postby Ritesh » Wed Oct 31, 2018 1:01 am

WiFive wrote:No, it would have to be supported in every firmware. Just print a new sticker.
Ok. Means there is no any support to write MAC address externally using tool. Correct?
Regards,
Ritesh Prajapati

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Need to overwrite MAC Address into ESP32 Module

Postby WiFive » Wed Oct 31, 2018 1:25 am

It means there is no way to change factory MAC address because efuse is not erasable.

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Need to overwrite MAC Address into ESP32 Module

Postby Ritesh » Wed Oct 31, 2018 4:03 am

WiFive wrote:It means there is no way to change factory MAC address because efuse is not erasable.
Ok. Is there any other way to overwrite MAC Address permanently? Do you have any idea or any information for same?
Regards,
Ritesh Prajapati

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Need to overwrite MAC Address into ESP32 Module

Postby WiFive » Wed Oct 31, 2018 4:15 am

No, only if you add support in all your firmwares to detect alternate Mac address in nvs or efuse blk3 and change base Mac address.

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Need to overwrite MAC Address into ESP32 Module

Postby Ritesh » Wed Oct 31, 2018 5:22 am

WiFive wrote:No, only if you add support in all your firmwares to detect alternate Mac address in nvs or efuse blk3 and change base Mac address.
Ok. Thanks for Reply.

That is already in our mind as we have already do that kind of stuff into ESP8266 Project.
Regards,
Ritesh Prajapati

Who is online

Users browsing this forum: Baidu [Spider], ok-home and 85 guests