ESP32-S2-WROOM怎么获得ESP32-S2外接FLASH的唯一序列号 [IDFGH-4312]

elegoqq
Posts: 9
Joined: Fri Sep 25, 2020 3:40 am

ESP32-S2-WROOM怎么获得ESP32-S2外接FLASH的唯一序列号 [IDFGH-4312]

Postby elegoqq » Fri Nov 20, 2020 7:12 am

使用的SDK版本是 release/v4.2,非常感谢

ESP_morris
Posts: 290
Joined: Wed Sep 05, 2018 6:23 am

Re: ESP32-S2-WROOM怎么获得ESP32-S2外接FLASH的唯一序列号

Postby ESP_morris » Mon Nov 23, 2020 6:52 am

试试这个函数esp_flash_read_id,第一个参数如果是NULL,就会默认选择主flash芯片

elegoqq
Posts: 9
Joined: Fri Sep 25, 2020 3:40 am

Re: ESP32-S2-WROOM怎么获得ESP32-S2外接FLASH的唯一序列号

Postby elegoqq » Tue Nov 24, 2020 5:51 am

esp_flash_read_id这个函数可以,能读到flash id 0x00204016.
再请教一个问题,怎么读取flash的唯一序列号(unique id)。

ESP_morris
Posts: 290
Joined: Wed Sep 05, 2018 6:23 am

Re: ESP32-S2-WROOM怎么获得ESP32-S2外接FLASH的唯一序列号 [IDFGH-4312]

Postby ESP_morris » Wed Nov 25, 2020 2:44 am

暂时还没有提供.如果你用这个ID是为了唯一标志你的产品,你还可以选择使用烧写在eFuse中的MAC地址

ESP_Alvin
Posts: 211
Joined: Thu May 17, 2018 2:26 am

Re: ESP32-S2-WROOM怎么获得ESP32-S2外接FLASH的唯一序列号

Postby ESP_Alvin » Wed Nov 25, 2020 2:52 am

Moderator's note: edit the topic title for issue tracking, thanks for reporting.

Who is online

Users browsing this forum: No registered users and 100 guests