ESP32 ULP programming

Sysprogs forums Forums VisualGDB ESP32 ULP programming

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #32348
    ya3
    Participant

    Hey,  I have a project that requires the use of the ULP coprocessor in the ESP32S3.  Currently tested by creating a new project from the ulp-example in idf v4.3.2.
    I started off by reading this post from a couple years ago: Topic: ESP32 with ULP support | Sysprogs

    I checked to see that the toolchains are contained in the proper location and that the toolchains.xml has the paths in <AdditionalPathDirs> section.

    Upon building the sample project, it fails at:
    No CMAKE_ASM_COMPILER could be found.
    No CMAKE_C_COMPILER could be found.

    Going through the the cmakelists where  ulp_embed_binary(${ulp_app_name} “${ulp_s_sources}” “${ulp_exp_dep_srcs}”) is being called, there was a section missing for the esp32s3 target. I added that and used the s2 toolchain as the documentation said they are the same. (if(IDF_TARGET STREQUAL “esp32s3”))

    I then followed and confirmed that those things it was complaining about were being set in this file by using the cmake debugger:  (set(TOOLCHAIN_FLAG ${idf_path}/components/ulp/cmake/toolchain-esp32s2-ulp.cmake))

    set(CMAKE_C_COMPILER “xtensa-esp32s2-elf-gcc”)
    set(CMAKE_ASM_COMPILER “esp32s2ulp-elf-as”)

    Unfortunately, that did not solve my issue. I then tried with esp32s2 and same situation.

    Maybe it has something to do with those two cmake variables being added to a toolchain flag that is then passed as an argument to a cmake externalproject_add call. (-DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FLAG})

    Any clue what I may be doing wrong? Thanks.

    Attachments:
    You must be logged in to view attached files.
    #32350
    support
    Keymaster

    This looks like something specific to the ESP-IDF (e.g. a bug or a toolchain compatibility issue).

    Our best advice would be to export the CMake command line used by VisualGDB to a batch file as shown here. This will help you reproduce the problem outside VisualGDB and use the ESP-IDF documentation to address it.

    Once you get the build outside VisualGDB working, feel free to share both original and adjusted command line, and we will help you configure VisualGDB to replicate the correct one.

    #32364
    ya3
    Participant

    Yup it appears to be esp-idf issue.
    Digging deeper into it, looks like the 4.4 release does not have support for the ULP of the S3 🙁

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.