Page 1 of 1

Enabling ESP Rainmaker Insights

Posted: Mon Mar 25, 2024 5:25 pm
by Sheepling
Hello all,

I have an issue with enabling the ESP-Rainmaker insights. I currently work with the ESP-IDF on the ESP32S2 and am using it with the ULP ADC sensors for a project. Upon enabling insights in menuconfig (component config->ESP Insights->Enable ESP Insights), the project can no longer flash due to memory issues where RTC_SLOW segment data no longer fits. How does enabling insights affect the RTC_SLOW memory? Has anyone experienced this before? and how does one go about solving this issue?

Any help would be much appreciated. :|

Here's the error in text form:
  1. FAILED: adc_sensor.elf
  2. cmd.exe /C "cd . && D:\Espressif\tools\xtensa-esp32s2-elf\esp-12.2.0_20230208\xtensa-esp32s2-elf\bin\xtensa-esp32s2-elf-g++.exe -mlongcalls -Wl,--cref -Wl,--defsym=IDF_TARGET_ESP32S2=0 -Wl,--Map=D:/P3Code/esp-rainmaker/examples/ULP-FSM_sensor/build/adc_sensor.map -Wl,--no-warn-rwx-segments -fno-rtti -fno-lto -Wl,--gc-sections -Wl,--warn-common -T esp32s2.peripherals.ld -T esp32s2.rom.ld -T esp32s2.rom.api.ld -T esp32s2.rom.libgcc.ld -T esp32s2.rom.newlib-funcs.ld -T esp32s2.rom.newlib-data.ld -T esp32s2.rom.spiflash.ld -T memory.ld -T sections.ld -T ulp_main.ld @CMakeFiles\adc_sensor.elf.rsp -o adc_sensor.elf  && cd ."
  3. d:/espressif/tools/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/12.2.0/../../../../xtensa-esp32s2-elf/bin/ld.exe: adc_sensor.elf section `.rtc_noinit' will not fit in region `rtc_slow_seg'
  4. d:/espressif/tools/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/12.2.0/../../../../xtensa-esp32s2-elf/bin/ld.exe: RTC_SLOW segment data does not fit.
  5. d:/espressif/tools/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/12.2.0/../../../../xtensa-esp32s2-elf/bin/ld.exe: region `rtc_slow_seg' overflowed by 2188 bytes
  6. collect2.exe: error: ld returned 1 exit status
  7. ninja: build stopped: subcommand failed.

Re: Enabling ESP Rainmaker Insights

Posted: Wed Mar 27, 2024 1:11 pm
by Sheepling
Upon reading on the ESP Insights, it has come to my attention that this is because data is stored in the RTC memory. My code for the ULP is also stored here, hence the error.

https://github.com/espressif/esp-insigh ... /README.md

My mistake :(