How to add ULP features to Custom CMake Projects

Serdar
Posts: 18
Joined: Fri Sep 02, 2022 7:33 pm

How to add ULP features to Custom CMake Projects

Postby Serdar » Mon May 22, 2023 10:37 pm

Hi, How can I add ULP features to this sample project.
Or can I use ULP features in an external component?

https://github.com/serdartoren/Test_repo/tree/main

Code: Select all

    include($ENV{IDF_PATH}/components/ulp/project_include.cmake)
    include($ENV{IDF_PATH}/tools/cmake/idf.cmake)
    # Create idf::{target} and idf::freertos static libraries

    set(ulp_app_name ulp_${COMPONENT_NAME})
    set(ulp_riscv_sources "ulp/main.c")
    set(ulp_exp_dep_srcs "main.c")

    ulp_embed_binary(${ulp_app_name} "${ulp_riscv_sources}" "${ulp_exp_dep_srcs}")
   
I tried adding these codes to the CMakeLists.txt file but it didn't work.
I couldn't find anything in the documentation for it.
It would be great if you could help!!

Who is online

Users browsing this forum: No registered users and 390 guests