Skip to content

ESP32-S3 ROM not provide gpio_input_get_high and gpio_output_set_high function? (IDFGH-8773) #10205

@imliubo

Description

@imliubo

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.

  1. pull
  2. write simple code
  3. 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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions