Search found 379 matches

by boarchuz
Tue Jul 07, 2020 12:19 am
Forum: ESP32 Arduino
Topic: ESP32 Deep Sleep, using millis in Arduino IDE, and then trying to do something in between
Replies: 5
Views: 4800

Re: ESP32 Deep Sleep, using millis in Arduino IDE, and then trying to do something in between

You're complicating it. Just do the readings and go back to sleep. There's practically nothing to be gained by even spinning up separate tasks. void setup() { Serial.begin(115200); analogRead x4 i2c Serial.println("Going to sleep now"); Serial.flush(); esp_deep_sleep(TIME_TO_SLEEP * uS_TO_S_FACTOR);...
by boarchuz
Fri Jun 26, 2020 6:40 pm
Forum: ESP-IDF
Topic: ESP32S2 running ULP-FSM example sought
Replies: 8
Views: 2773

Re: ESP32S2 running ULP-FSM example sought

I've uploaded an example here:
https://github.com/boarchuz/s2-ulp-fsm-demo (fiddles with some variables, shows some new instructions, toggles LED)

You'll need the changes to IDF here:
https://github.com/boarchuz/esp-idf/tree/s2-ulp-fsm
by boarchuz
Fri Jun 26, 2020 4:15 pm
Forum: ESP-IDF
Topic: ULP Button rising
Replies: 6
Views: 1788

Re: ULP Button rising

rtc_gpio_init(GPIO_NUM_2); rtc_gpio_set_direction(GPIO_NUM_2, RTC_GPIO_MODE_INPUT_ONLY); rtc_gpio_pullup_en(GPIO_NUM_2); rtc_gpio_pulldown_dis(GPIO_NUM_2); //2 has default pulldown //Don't enable output //Don't enable hold const ulp_insn_t program[] = { I_RD_REG(RTC_GPIO_IN_REG, RTCIO_GPIO2_CHANNEL...
by boarchuz
Thu Jun 18, 2020 3:03 am
Forum: ESP-IDF
Topic: esp32 crashes when cJSON_Delete is called
Replies: 4
Views: 1471

Re: esp32 crashes when cJSON_Delete is called

If you comment out cJSON_Delete does it still crash?
by boarchuz
Wed Jun 17, 2020 7:40 am
Forum: ESP-IDF
Topic: esp32 crashes when cJSON_Delete is called
Replies: 4
Views: 1471

Re: esp32 crashes when cJSON_Delete is called

You need to check return values for cJSON_Parse, cJSON_GetObjectItem, and any related functions. If they fail for any reason (no mem, invalid json, element not found, etc) they will return NULL.
by boarchuz
Tue Jun 16, 2020 12:39 pm
Forum: IDEs for ESP-IDF
Topic: VS Code - Size Analysis
Replies: 6
Views: 6676

Re: VS Code - Size Analysis

Are they not simply showing used/free instead of the expected used/total? The bars should be using the ratio values or used/(used+available) instead.

It would also be great to have the total_size front-and-centre in this view.
by boarchuz
Tue Jun 16, 2020 2:15 am
Forum: Hardware
Topic: Custom PCB Not working
Replies: 7
Views: 2960

Re: Custom PCB Not working

Are D+/D- on the USB receptacle correct?
by boarchuz
Mon Jun 15, 2020 1:49 pm
Forum: Documentation
Topic: Version links broken on 'latest'
Replies: 9
Views: 14703

Re: Version links broken on 'latest'

TRM link in docs is broken: IDF_TARGET_TRM_URL is not replaced with the actual url.

In the Introduction here: https://docs.espressif.com/projects/esp ... h_pad.html
by boarchuz
Mon Jun 15, 2020 11:01 am
Forum: ESP-IDF
Topic: ULP Button rising
Replies: 6
Views: 1788

Re: ULP Button rising

Could you post your updated ULP program and pin config?

Go to advanced search