esp32h2 Low power API problem(light sleep + deep sleep)

feixue_ls
Posts: 2
Joined: Wed Sep 06, 2023 2:26 am

esp32h2 Low power API problem(light sleep + deep sleep)

Postby feixue_ls » Thu Sep 14, 2023 7:04 am

HI,
There is a problem that when using ESP32H2 to test low power, neither light_sleep nor deep_sleep_wake_stub example esp32h2 can compile, but esp32c6 can compile.
The error log is shown in the figure below. How to solve this problem? Even if I call the low-power API alone, the error is still reported.
c:/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: esp-idf/main/libmain.a(rtc_wake_stub_example.c.obj): in function `wake_stub_example':
D:/work/esp32/deep_sleep_wake_stub/main/rtc_wake_stub_example.c:47: undefined reference to `esp_wake_stub_get_wakeup_cause'

c:/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: D:/work/esp32/deep_sleep_wake_stub/main/rtc_wake_stub_example.c:51: undefined reference to `esp_wake_stub_uart_tx_wait_idle'

c:/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: D:/work/esp32/deep_sleep_wake_stub/main/rtc_wake_stub_example.c:68: undefined reference to `esp_wake_stub_set_wakeup_time'

c:/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: D:/work/esp32/deep_sleep_wake_stub/main/rtc_wake_stub_example.c:71: undefined reference to `esp_wake_stub_uart_tx_wait_idle'

c:/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: D:/work/esp32/deep_sleep_wake_stub/main/rtc_wake_stub_example.c:74: undefined reference to `esp_wake_stub_sleep'

c:/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: D:/work/esp32/deep_sleep_wake_stub/main/rtc_wake_stub_example.c:59: undefined reference to `esp_default_wake_deep_sleep'

c:/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: esp-idf/main/libmain.a(wake_stub_example_main.c.obj): in function `app_main':

D:/work/esp32/deep_sleep_wake_stub/main/wake_stub_example_main.c:27: undefined reference to `esp_sleep_get_wakeup_cause'

c:/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: D:/work/esp32/deep_sleep_wake_stub/main/wake_stub_example_main.c:37: undefined reference to `esp_sleep_enable_timer_wakeup'

c:/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: D:/work/esp32/deep_sleep_wake_stub/main/wake_stub_example_main.c:46: undefined reference to `esp_set_deep_sleep_wake_stub'

c:/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: D:/work/esp32/deep_sleep_wake_stub/main/wake_stub_example_main.c:49: undefined reference to `esp_deep_sleep_start'

Who is online

Users browsing this forum: No registered users and 135 guests