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

ESP32S3 Temperature Sensor undefined reference (IDFGH-6427) #8086

Closed
brunohorta82 opened this issue Dec 14, 2021 · 6 comments
Closed

ESP32S3 Temperature Sensor undefined reference (IDFGH-6427) #8086

brunohorta82 opened this issue Dec 14, 2021 · 6 comments
Assignees
Labels
Awaiting Response awaiting a response from the author Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@brunohorta82
Copy link

undefined reference to `temp_sensor_start' when I try use
#include "driver/temp_sensor.h"
temp_sensor_start();

BOARD ESP32S3

@espressif-bot espressif-bot added the Status: Opened Issue is new label Dec 14, 2021
@github-actions github-actions bot changed the title ESP32S3 Temperature Sensor undefined reference ESP32S3 Temperature Sensor undefined reference (IDFGH-6427) Dec 14, 2021
@brunohorta82
Copy link
Author

any news ?

@ginkgm
Copy link
Collaborator

ginkgm commented Feb 8, 2022

Hi @brunohorta82 ,
Sorry to say that, this feature hasn't been implemented yet. It is planned to be added in IDF v5.0.

@espressif-bot espressif-bot added the Awaiting Response awaiting a response from the author label Feb 8, 2022
@espressif-bot espressif-bot added Status: Selected for Development Issue is selected for development Status: Opened Issue is new and removed Status: Opened Issue is new Status: Selected for Development Issue is selected for development labels Jun 13, 2022
@espressif-bot espressif-bot assigned mythbuster5 and unassigned ginkgm Jun 27, 2022
@espressif-bot espressif-bot added Status: Selected for Development Issue is selected for development and removed Status: Opened Issue is new labels Jun 27, 2022
espressif-bot pushed a commit that referenced this issue Jul 15, 2022
@espressif-bot espressif-bot added Resolution: Done Issue is done internally Status: Done Issue is done internally and removed Status: Selected for Development Issue is selected for development labels Jul 22, 2022
@Alvin1Zhang
Copy link
Collaborator

Thanks for reporting, the feature has been implemented in daceb35, feel free to reopen.

@benninga
Copy link

@Alvin1Zhang - hi. I'm new to ESP32 and I'm trying to compile the temperature sensor example project and having issues.

I have an ESP32-WROOM-32E chip. And I'm using ESP-IDF for VS Code with ESP-IDF version v5.0.1

I've compiled other projects for the chip successfully. But, for this project I'm seeing two errors:

During compile I get this feailure:
/esp32/temp_sensor/main/temp_sensor_main.c:18: undefined reference to temperature_sensor_install'`

Also - the tempereature_sensor.h file contains an unresolved reference to to TEMPERATURE_SENSOR_CLK_SRC_DEFAULT.

Any suggestions? (Also - let me know if I should use a different ticket).

@igrr
Copy link
Member

igrr commented Feb 24, 2023

@benninga please note that ESP32 is not in the list of chips which the temp_sensor example is compatible with; see "Supported targets" at the top of https://github.com/espressif/esp-idf/blob/master/examples/peripherals/temp_sensor/README.md.

Initally the ESP32 chip also had a temperature sensor in the list of features, but eventually it was removed as it was difficult to get useful readings from. Newer chips (ESP32-S2 and later) do have a temperature sensor that is supported by this example.

@benninga
Copy link

Thanks @igrr !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Response awaiting a response from the author Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

7 participants