-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Resolution: DoneIssue is done internallyIssue is done internallyStatus: DoneIssue is done internallyIssue is done internallyType: Bugbugs in IDFbugs in IDF
Description
Answers checklist.
- I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
- I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
- I have searched the issue tracker for a similar issue and not found a similar issue.
IDF version.
v4.4.2(1b16ef6) and v5.1-dev-1264-g1c84cfde14d
Operating System used.
Linux
How did you build your project?
Command line with CMake
If you are using Windows, please specify command line type.
No response
What is the expected behavior?
build success.
What is the actual behavior?
undefined reference to ‘gpio_output_set_high' and ‘gpio_input_get_high’.
Is this not support or missing?
Steps to reproduce.
- pull
- write simple code
- build with idf.py
...
Build or installation Logs.
/path/to/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/11.2.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(test.c.obj):(.literal.app_main+0x0): undefined reference to `gpio_input_get_high'
/path/to/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/11.2.0/../../../../xtensa-esp32s3-elf/bin/ld: esp-idf/main/libmain.a(test.c.obj):(.literal.app_main+0x4): undefined reference to `gpio_output_set_high'
More Information.
#include <stdio.h>
#include "esp32s3/rom/gpio.h"
void app_main(void)
{
gpio_input_get_high();
gpio_output_set_high(0, 0, 0, 0);
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Resolution: DoneIssue is done internallyIssue is done internallyStatus: DoneIssue is done internallyIssue is done internallyType: Bugbugs in IDFbugs in IDF