Open peteDDD opened 9 months ago
platformio.ini
[env:esp32-s3-devkitc-1]
platform = espressif32 ;@6.4.0
board = esp32-s3-devkitc-1
framework = espidf, arduino
board_build.arduino.memory_type = dio_opi
monitor_speed = 115200
monitor_filters = direct, esp32_exception_decoder
board_build.partitions = default_partitions.csv
build_flags =
-I./src/
-DCORE_DEBUG_LEVEL=5
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-fmax-errors=5
lib_ldf_mode = deep
Deep sleep wake stub example was added in https://github.com/espressif/esp-idf/commit/a6f7035c8c7badd83e5f348b92704b3c499dbea8, which is part of IDF v5.1 release. This example won't work with earlier versions of IDF, and you are using v4.4.5.
Thank you for your very prompt response. There were other things that broke after 4.4 which kept me there but I'll try to update now.
Thanks again for your help.
On Sun, Nov 26, 2023, 14:01 Ivan Grokhotkov @.***> wrote:
Deep sleep wake stub example was added in a6f7035 https://github.com/espressif/esp-idf/commit/a6f7035c8c7badd83e5f348b92704b3c499dbea8, which is part of IDF v5.1 release. This example won't work with earlier versions of IDF, and you are using v4.4.5.
— Reply to this email directly, view it on GitHub https://github.com/espressif/esp-idf/issues/12671#issuecomment-1826869465, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANQI5JQQGWICWORFVPQTVKDYGOGYTAVCNFSM6AAAAAA73AIZXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWHA3DSNBWGU . You are receiving this because you authored the thread.Message ID: @.***>
Answers checklist.
IDF version.
see_full_toolset_in_log_below
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
PowerShell
What is the expected behavior?
rExpect required functions, specifically set_rtc_memory_crc() (and others listed below), to be found when building examples/system/deep_sleep_wake_stub
What is the actual behavior?
Expect to be able to build the examples/system/deep_sleep_wake_stub on ESP32-S3 Per the TCM, 10.6: RTC Boot, on page 565, setting the wake_stub, from within a wake_stub requires setting the rtc crc which in all examples is done using set_rtc_memory_crc() however this and other necessary code for working within wake-stubs is not found.
components/esp_hw_support/sleep_wake_stub.c requires set_rtc_memory_crc() which should precumably be in components/esp_rom/esp32s3/ld/esp32s3.rom.ld like it is for other esp32 processors but there is no definition of set_rtc_memory_crc there (or anywhere else I can find)
Similarly, the source for the following are also not found: rtc_cntl_ll_get_wakeup_cause rtc_cntl_ll_sleep_enable xt_utils_wait_for_intr rtc_cntl_ll_time_to_count rtc_cntl_ll_get_rtc_time
Steps to reproduce.
1: simply try to build examples/system/deep_sleep_wake using visual studio code with platformio 2: even adding a copy of sleep_wake_stub.c to the source files does not help 3: see log below
Build or installation Logs.
More Information.
As I search the whole source tree, I can't find source for these functions for ESP32-S3