ULP code cannot call functions from the main app unless you provide ULP-specific copies and include them in the ULP build step.
Search found 10 matches
- Tue Jul 15, 2025 3:43 pm
- Forum: ESP-IDF
- Topic: ULP linker Issues with Folder Structure
- Replies: 7
- Views: 318
Re: ULP linker Issues with Folder Structure
This is from GPT, anyone knows if that is true?
- Sun Jul 13, 2025 1:29 pm
- Forum: ESP-IDF
- Topic: ULP linker Issues with Folder Structure
- Replies: 7
- Views: 318
Re: ULP linker Issues with Folder Structure
On the CMAKE file I see that the CMAKE_FLAGS get ULP_S_SOURCES flag, which might indicate on Assembly sources.
Does anyone knows if C files also supported?
https://github.com/espressif/esp-idf/bl ... .cmake#L61
Does anyone knows if C files also supported?
https://github.com/espressif/esp-idf/bl ... .cmake#L61
- Sun Jul 13, 2025 8:35 am
- Forum: ESP-IDF
- Topic: ULP linker Issues with Folder Structure
- Replies: 7
- Views: 318
Re: ULP linker Issues with Folder Structure
So I tried both:
set(ulp_sources "../ulp/ulp_main.c bpw34/bpw34.c")
and
set(ulp_sources "../ulp/ulp_main.c" "bpw34/bpw34.c")
While the following is:
ulp_embed_binary(${ulp_app_name} "${ulp_sources}" "${ulp_exp_dep_srcs}")
And it seems to keep the error:
/Users/xxx/.platformio/packages ...
set(ulp_sources "../ulp/ulp_main.c bpw34/bpw34.c")
and
set(ulp_sources "../ulp/ulp_main.c" "bpw34/bpw34.c")
While the following is:
ulp_embed_binary(${ulp_app_name} "${ulp_sources}" "${ulp_exp_dep_srcs}")
And it seems to keep the error:
/Users/xxx/.platformio/packages ...
- Sat Jul 12, 2025 6:05 pm
- Forum: ESP-IDF
- Topic: ULP linker Issues with Folder Structure
- Replies: 7
- Views: 318
Re: ULP linker Issues with Folder Structure
Of course(?), when specifying the C source files to be built for the ULP, you have to specify all the source files you want to be compiled and linked into the ULP code.
What do you mean by specifying the C source files? isn't my src/CMakeLists.txt looks fine?
idf_component_register(SRCS
"lora ...
- Fri Jul 11, 2025 6:27 pm
- Forum: ESP-IDF
- Topic: ULP linker Issues with Folder Structure
- Replies: 7
- Views: 318
ULP linker Issues with Folder Structure
Hi all,
I’m working with ESP32-S3 and using ULP RISC-V. I'm using PlatformIO (which uses idf.py). I've encountered a couple of issues in the linker stage, which I cannot find any documentation on.
ulp_main.h Not Generated Unless ULP Source is Outside src/ :
My project layout uses a src/ folder ...
I’m working with ESP32-S3 and using ULP RISC-V. I'm using PlatformIO (which uses idf.py). I've encountered a couple of issues in the linker stage, which I cannot find any documentation on.
ulp_main.h Not Generated Unless ULP Source is Outside src/ :
My project layout uses a src/ folder ...
- Sat Jun 28, 2025 5:53 am
- Forum: ESP-IDF
- Topic: Problem with ADC on ULP RISC-V while deep-sleep
- Replies: 6
- Views: 276
Re: Problem with ADC on ULP RISC-V while deep-sleep
It will be fixed in the next framework-espressif update, I am opening a PR for platformio to have v5.4.2 soon.
Thanks
Thanks
- Fri Jun 27, 2025 5:48 pm
- Forum: ESP-IDF
- Topic: Problem with ADC on ULP RISC-V while deep-sleep
- Replies: 6
- Views: 276
Re: Problem with ADC on ULP RISC-V while deep-sleep
After tons of debugging, I found the issue.
The issue lies in the initialization of the new ADC Unit code. The default is LP and not RISC-V.
This bug has been fixed in this PR: https://github.com/espressif/esp-idf/commit/6858b37f5108608fac59e8220e9fd6a54297e272
Platformio is still pulling an older ...
The issue lies in the initialization of the new ADC Unit code. The default is LP and not RISC-V.
This bug has been fixed in this PR: https://github.com/espressif/esp-idf/commit/6858b37f5108608fac59e8220e9fd6a54297e272
Platformio is still pulling an older ...
- Tue Jun 24, 2025 7:06 pm
- Forum: ESP-IDF
- Topic: Problem with ADC on ULP RISC-V while deep-sleep
- Replies: 6
- Views: 276
Re: Problem with ADC on ULP RISC-V while deep-sleep
I am calling to `esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_ON);` of course 
- Sun Jun 22, 2025 6:10 am
- Forum: ESP-IDF
- Topic: Problem with ADC on ULP RISC-V while deep-sleep
- Replies: 6
- Views: 276
Re: Problem with ADC on ULP RISC-V while deep-sleep
Thanks @MicroController , I used the same example to build my program. Do you see anything I am missing on my end by any chance?
- Sat Jun 21, 2025 1:06 pm
- Forum: ESP-IDF
- Topic: Problem with ADC on ULP RISC-V while deep-sleep
- Replies: 6
- Views: 276
Problem with ADC on ULP RISC-V while deep-sleep
Hi all,
I am trying to write a simple program for reading ADC1CH6 while in deep sleep using ULP RISC-V.
For some reason, the "adc read" function is hanging. Removing it, I can verify that everything works well (going to sleep, setting variable on ULP and waking the main CPU, accessing the variable ...
I am trying to write a simple program for reading ADC1CH6 while in deep sleep using ULP RISC-V.
For some reason, the "adc read" function is hanging. Removing it, I can verify that everything works well (going to sleep, setting variable on ULP and waking the main CPU, accessing the variable ...