Getting linker error when trying to build with custom eFuse table.

asargent
Posts: 12
Joined: Mon Oct 21, 2024 5:15 pm

Getting linker error when trying to build with custom eFuse table.

Postby asargent » Tue Feb 04, 2025 4:56 pm

Getting linker error when trying to build with custom eFuse table. The table source files generate and the compiler does not complain about the efuse field variable. The make file has been updated to include the table .c file. What am I missing?
Attachments
esp_efuse_custom_table.csv
(1.21 KiB) Downloaded 54 times
esp_efuse_custom_table.h
(995 Bytes) Downloaded 55 times
esp_efuse_custom_table.c
(1.87 KiB) Downloaded 54 times

asargent
Posts: 12
Joined: Mon Oct 21, 2024 5:15 pm

Re: Getting linker error when trying to build with custom eFuse table.

Postby asargent » Tue Feb 04, 2025 4:57 pm

Here are additional files I was unable to upload in original post
Attachments
table build.txt
(554 Bytes) Downloaded 55 times
Build error.txt
(1.81 KiB) Downloaded 54 times

MicroController
Posts: 1992
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Getting linker error when trying to build with custom eFuse table.

Postby MicroController » Tue Feb 04, 2025 7:40 pm

Is esp_efuse_custom_table.c referenced in the SRCS in main/CMakeLists.txt?

asargent
Posts: 12
Joined: Mon Oct 21, 2024 5:15 pm

Re: Getting linker error when trying to build with custom eFuse table.

Postby asargent » Tue Feb 04, 2025 7:47 pm

The CMakeLists.txt under main is this:

idf_component_register(SRCS "main.c"
"esp_efuse_custom_table.c"
INCLUDE_DIRS "." "include"
REQUIRES nvs_flash mqtt bt esp_wifi driver mainApp master efuse)

asargent
Posts: 12
Joined: Mon Oct 21, 2024 5:15 pm

Re: Getting linker error when trying to build with custom eFuse table.

Postby asargent » Tue Feb 04, 2025 11:22 pm

By shuffling around the location of things so that I could build the table in the same component that I was using it, I was able to make it work. Obvious now that I figured it out ;)

Who is online

Users browsing this forum: No registered users and 48 guests