How to increase .bss size for ULP?
Posted: Sun Jul 18, 2021 9:52 pm
Hi. I'm using the vscode extension to program and build my project. I've used the SDK Configuration editor to increase the RTC slow memory reserved for the coprocessor, but regardless of how high I put it, it always tells me that the ram region overflows by 64 bytes:
I can confirm that my sdkconfig has at least 2kb reserved for the ULP:
How do I allocate more memory for my ulp program? Thanks in advance for any help.
Code: Select all
[3/83] Performing build step for 'ulp_main'
FAILED: esp-idf/main/ulp_main-prefix/src/ulp_main-stamp/ulp_main-build esp-idf/main/ulp_main/ulp_main.bin esp-idf/main/ulp_main/ulp_main.ld esp-idf/main/ulp_main/ulp_main.h esp-idf/main/ulp_main/ulp_main.map esp-idf/main/ulp_main/ulp_main.sym esp-idf/main/ulp_main/esp32.ulp.ld esp-idf/main/ulp_main/ulp_main
cmd.exe /C "cd /D D:\Projects\moist_plants_idf\build\esp-idf\main\ulp_main && C:\Users\jacob\.espressif\tools\cmake\3.16.4\bin\cmake.exe --build D:/Projects/moist_plants_idf/build/esp-idf/main/ulp_main --target build"
[1/4] Linking ASM executable ulp_main
FAILED: ulp_main
cmd.exe /C "cd . && esp32ulp-elf-ld -A elf32-esp32ulp -nostdlib CMakeFiles/ulp_main.dir/adc.ulp.S.obj -o ulp_main -TD:/Projects/moist_plants_idf/build/esp-idf/main/ulp_main/esp32.ulp.ld -Map=D:/Projects/moist_plants_idf/build/esp-idf/main/ulp_main/ulp_main.map && cd ."
esp32ulp-elf-ld: ulp_main section `.bss' will not fit in region `ram'
esp32ulp-elf-ld: region `ram' overflowed by 64 bytes
ninja: build stopped: subcommand failed.
[4/83] Linking C static library esp-idf\esp_serial_slave_link\libesp_serial_slave_link.a
ninja: build stopped: subcommand failed.
The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake --build ." terminated with exit code: 1.
Code: Select all
CONFIG_ULP_COPROC_ENABLED=y
CONFIG_ULP_COPROC_RESERVE_MEM=2048