Giter VIP home page Giter VIP logo

Comments (5)

Vollbrecht avatar Vollbrecht commented on July 18, 2024

which ulp are you talking about? what esp variant are you using. There are different ulp's for different variants. For example the esp32s3 has the classical ulp/fsm that is programmed in assambly but also has a second variant that can be compiled with a normal riscv toolchain. For the first variant you can find some examples in the riscv-ulp directory. If you want to see how you can interact with it from your normal application you can have a look inside the std-demo from ivmarkov here.

from esp-idf-hal.

zzn26 avatar zzn26 commented on July 18, 2024

which ulp are you talking about? what esp variant are you using. There are different ulp's for different variants. For example the esp32s3 has the classical ulp/fsm that is programmed in assambly but also has a second variant that can be compiled with a normal riscv toolchain. For the first variant you can find some examples in the riscv-ulp directory. If you want to see how you can interact with it from your normal application you can have a look inside the std-demo from ivmarkov here.

@Vollbrecht I'm sorry if I wasn't clear. I'm using esp32s3.I clone the std-demo of ivmarkov you mentioned, but unfortunately cargo check suggests me

no method named `load` found for struct `esp_idf_svc::hal::ulp::ULP` in the current scope
    --> src/main.rs:1357:13

I'm not sure what's wrong with that

from esp-idf-hal.

Vollbrecht avatar Vollbrecht commented on July 18, 2024

you see that he is using a specifc sdkconfig file for the s2 here in the project and he mentiond that this example assume s2. Some of the methods are only availabe if ulp support is enabled via sdkconfigs. You can see the flags that are checked in the source code of ulp. So this needed to be set in the sdkconfigs with the appopriate names simmilar how its done in the demo's sdkconfig

from esp-idf-hal.

zzn26 avatar zzn26 commented on July 18, 2024

I seem to have found the problem, my esp-idf version is 5.1.1 and the ulp compile condition requires a major version number of 4.

from esp-idf-hal.

zzn26 avatar zzn26 commented on July 18, 2024

you see that he is using a specifc sdkconfig file for the s2 here in the project and he mentiond that this example assume s2. Some of the methods are only availabe if ulp support is enabled via sdkconfigs. You can see the flags that are checked in the source code of ulp. So this needed to be set in the sdkconfigs with the appopriate names simmilar how its done in the demo's sdkconfig

@Vollbrecht I solved this problem by referring to ivmarkov's demo and calling esp-idf-sys directly, thank you very much for your answer.

from esp-idf-hal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.