Search found 89 matches

by wevets
Sat Jun 13, 2020 12:16 am
Forum: ESP32 IDF
Topic: ulp_run / ulp_stop
Replies: 0
Views: 169

ulp_run / ulp_stop

It is possible to run the ULP in light sleep with wakeup set to occur on input through the UART. Once awakened, is there an API (which I haven't found) to stop the ULP from the system? Is stopping the ULP from the system possible? My problem seems to be that I can start the ULP and to into light sle...
by wevets
Fri Jun 12, 2020 4:19 pm
Forum: ESP32 IDF
Topic: small numbers of µS delays
Replies: 6
Views: 403

Re: small numbers of µS delays

Thanks for your replies. ESP_Sprite, to me, "the company gang" is a term of respect. You guys have always been the source of the "straight skinny" on what's going on in the idf and the ESP32. I especially appreciate your explanation of esp_delay_us(), as the underlying code is impossible to get at s...
by wevets
Fri Jun 12, 2020 5:21 am
Forum: ESP32 IDF
Topic: small numbers of µS delays
Replies: 6
Views: 403

Re: small numbers of µS delays

PeterR, thanks for your reply. I'm bit-banging an external ADC to read out a series of bits. I need to be able to do this both on one of the cores and in the ULP, to I'm running the GPIOs as RTC GPIOs. When I send out a clock pulse on one pin, I need to wait until the data is ready on the other pin,...
by wevets
Thu Jun 11, 2020 7:00 pm
Forum: ESP32 IDF
Topic: small numbers of µS delays
Replies: 6
Views: 403

small numbers of µS delays

I need to be able to insert delays of a few µS into some code to manage hardware delays in GPIO reads. I see the API ets_delay_us() in the esp-idf includes at .../esp32/rom/ets_sys.h, and in .../components/esp_rom/esp32/ld/esp32.rom.ld, which appears to be a table of addresses of routines in the rom...
by wevets
Tue May 26, 2020 12:11 am
Forum: ESP32 IDF
Topic: ULP timer API doesn't work in deep sleep.
Replies: 4
Views: 283

Re: ULP timer API doesn't work in deep sleep.

I needed to go out for what turned out to be a convenient amount of time, so I set up an experiment, which was easy with my sample code. I can now verify that the 32-bits of SENS_ULP_CP_SLEEP_CYC0_REG will allow a maximum delay time of a bit over 71 minutes with a bit of uncertainty due to how close...
by wevets
Mon May 25, 2020 7:45 pm
Forum: ESP32 IDF
Topic: ULP timer API doesn't work in deep sleep.
Replies: 4
Views: 283

Re: ULP timer API doesn't work in deep sleep.

Boarchuz and WeFive, Thanks for your replies. My mistake was not putting a "halt" instruction in my code following the "jump TestAbleToWake, eq" instruction at line 24. With that I get the delay I want. In my testing, I'm going for 5 million µS, but the SENS_ULP_CP_SLEEP_CYC0_REG is 32 bits. If even...
by wevets
Mon May 25, 2020 8:04 am
Forum: ESP32 IDF
Topic: ULP timer API doesn't work in deep sleep.
Replies: 4
Views: 283

ULP timer API doesn't work in deep sleep.

I'm trying to build an app in which I want the ULP to wait a period of 5 seconds (sometimes more, sometimes less, configurable by the user) between checks of a peripheral by the ULP. I wrote a minimal ULP driver and ULP module, attached, to test things out. It appears that ulp_set_wakeup_period() do...
by wevets
Mon May 04, 2020 6:42 am
Forum: ESP32 IDF
Topic: Unable to add certain components in custom library
Replies: 1
Views: 401

Re: Unable to add certain components in custom library

I just had this problem and got help on the board from ESP_Angus and Junior. In the CMakeLists.txt file for the component for which esp_adc_cal.h is not found, add REQUIRES "esp_adc_cal" as the last statement in the idf_components_register statement. In the CMakeLists.txt file for the component for ...
by wevets
Mon May 04, 2020 6:27 am
Forum: ESP32 IDF
Topic: esp-idf 4.0 build system does not find certain esp-idf include files
Replies: 3
Views: 712

Re: esp-idf 4.0 build system does not find certain esp-idf include files

ESP_Angus and Junior,

Thanks for your pointers and help. I've got my app building under cmake now.
by wevets
Thu Apr 30, 2020 6:08 am
Forum: ESP32 IDF
Topic: esp-idf 4.0 build system does not find certain esp-idf include files
Replies: 3
Views: 712

esp-idf 4.0 build system does not find certain esp-idf include files

I'm building an app with a main program and 5 custom components, which built just fine under esp-idf 3.0. It fails to build under idf v4.0 because the build system fails to find several idf include files, in particular for my app, esp_http_client.h and nvs.h. The fail message is, for example. ../com...

Go to advanced search