Search found 85 matches

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: 200

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: 200

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: 200

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: 324

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: 605

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: 605

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...
by wevets
Wed Apr 29, 2020 10:43 pm
Forum: ESP32 IDF
Topic: Pin 2 goes high when initialized for RTC
Replies: 2
Views: 892

Re: Pin 2 goes high when initialized for RTC

Interesting issue. I don't have the test gear to notice that GPIO 2 goes high when going into deep sleep, but it's worth noting that in the esp-idf write-up on GPIOs at https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/gpio.html there's an API listed: esp_err_t rt...
by wevets
Sun Apr 19, 2020 6:53 am
Forum: ESP32 IDF
Topic: Use HX711 data in ULP
Replies: 3
Views: 902

Re: Use HX711 data in ULP

Hi, I'm the guy who posted the question to which you were pointed above. I've got HX711 code working along with code to test for threshold crossings. 1. If you want the HX711 to be read by both the ULP and the system, set up your GPIOs as RTC GPIOs, which can be controlled/read in both environments....
by wevets
Sat Apr 18, 2020 3:49 am
Forum: ESP32 IDF
Topic: Apparent bug in esp-idf 4.0 in build of ULP examples
Replies: 0
Views: 740

Apparent bug in esp-idf 4.0 in build of ULP examples

I recently installed esp-idf 4.0 on a windows 10 machine according to the directions. It was a vanilla install. From this install, I've been able to build test programs that don't utilize the ULP. I was unable to build programs using the ULP that had worked under esp-idf 3.3. No big deal. I just did...
by wevets
Fri Apr 17, 2020 1:53 am
Forum: ESP32 IDF
Topic: problem with esp-idf 4.0 and assembler
Replies: 0
Views: 677

problem with esp-idf 4.0 and assembler

I am in the process of converting a program to esp-idf 4.0. I have installed 4.0 according to the vanilla instructions. While assembling a .S file with the following lines: 54 // Data segment 55 .bss 56 .global LastReadHi // Last reported read hi word In which I declare a pile of assembler variables...

Go to advanced search