Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TW#25969] esp_derive_local_mac missing? #2352

Closed
tablatronix opened this issue Aug 30, 2018 · 3 comments
Closed

[TW#25969] esp_derive_local_mac missing? #2352

tablatronix opened this issue Aug 30, 2018 · 3 comments

Comments

@tablatronix
Copy link

Environment

arduino esp32 staging

Problem Description

Compile error

Steps to repropduce

compile using func

// <esp_system.h>
esp_err_t esp_derive_local_mac(uint8_t* local_mac, const uint8_t* universal_mac);

Code to reproduce this issue

#include <esp_system.h>
uint64_t _chipmacid = 0LL;
esp_efuse_mac_get_default((uint8_t*) (&_chipmacid));
uint64_t _localmacid = 0LL;
esp_derive_local_mac((uint8_t*)(&_localmacid),(uint8_t*)(&_chipmacid));

Debug Logs

.pioenvs\esp32doit-devkit-v1\src\GetChipID.ino.cpp.o:(.literal._Z5setupv+0x40): undefined reference to `esp_derive_local_mac'
.pioenvs\esp32doit-devkit-v1\src\GetChipID.ino.cpp.o: In function `setup()':
GetChipID.ino.cpp:(.text._Z5setupv+0xf2): undefined reference to `esp_derive_local_mac'

Other items if possible

espressif/arduino-esp32#1817

@FayeY FayeY changed the title esp_derive_local_mac missing? [TW#25969] esp_derive_local_mac missing? Sep 2, 2018
@zhangyanjiaoesp
Copy link
Collaborator

@tablatronix I have call this function as you describled above in the IDF code to test, it can compile successfully. Can you provide a complete code ? Maybe you have miss something.

@igrr
Copy link
Member

igrr commented Sep 5, 2018

Noticed that system_api.c defines esp_derive_mac but esp_system.h header declares esp_derive_local_mac, perhaps that's the issue?

@zhangyanjiaoesp
Copy link
Collaborator

It should be the root cause. I will fix it.

@igrr igrr closed this as completed in 8d698a5 Sep 5, 2018
catalinio pushed a commit to catalinio/pycom-esp-idf that referenced this issue Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants