Enabling ESP Rainmaker Insights

Sheepling
Posts: 12
Joined: Sun Feb 11, 2024 1:48 pm

Enabling ESP Rainmaker Insights

Postby Sheepling » Mon Mar 25, 2024 5:25 pm

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.
Attachments
image_2024-03-25_172055618.png
Error in png form
image_2024-03-25_172055618.png (77.86 KiB) Viewed 1233 times

Sheepling
Posts: 12
Joined: Sun Feb 11, 2024 1:48 pm

Re: Enabling ESP Rainmaker Insights

Postby Sheepling » Wed Mar 27, 2024 1:11 pm

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 :(
Attachments
image_2024-03-27_131014444.png
image_2024-03-27_131014444.png (69.6 KiB) Viewed 1149 times

Who is online

Users browsing this forum: No registered users and 65 guests