Skip to content

undefined reference to `esp_derive_local_mac' #1817

@tablatronix

Description

@tablatronix

esp32 doit

I can call most stuff in esp_system.h without a problem, but trying to use this and I get this.
It will give me syntax complaints and stuff, but when compiling it does this, linker issue in SDK ?

code ( probably wrong also)

#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));

compile error

.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'

refs
esp_err_t esp_derive_local_mac(uint8_t* local_mac, const uint8_t* universal_mac);
shrug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions