Search found 248 matches

by boarchuz
Fri Jun 26, 2020 6:40 pm
Forum: ESP32 IDF
Topic: ESP32S2 running ULP-FSM example sought
Replies: 4
Views: 188

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: ESP32 IDF
Topic: ULP Button rising
Replies: 6
Views: 248

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: ESP32 IDF
Topic: esp32 crashes when cJSON_Delete is called
Replies: 4
Views: 262

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: ESP32 IDF
Topic: esp32 crashes when cJSON_Delete is called
Replies: 4
Views: 262

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

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

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: 7
Views: 7903

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: ESP32 IDF
Topic: ULP Button rising
Replies: 6
Views: 248

Re: ULP Button rising

Could you post your updated ULP program and pin config?
by boarchuz
Mon Jun 15, 2020 5:38 am
Forum: ESP32 IDF
Topic: ULP Button rising
Replies: 6
Views: 248

Re: ULP Button rising

You can test for >=1 using M_BGE(label, 1). ie. Simply replace your M_BL(10, 1) with M_BGE(10, 1).

And remove I_MOVI(R0, ~R0).

And I strongly recommend disabling output if you're externally shorting this pin to ground via the button.

Go to advanced search