Search found 258 matches

by boarchuz
Wed Aug 12, 2020 3:06 am
Forum: ESP32 Arduino
Topic: Configure GPIO 4 low during Boot
Replies: 3
Views: 116

Re: Configure GPIO 4 low during Boot

It has internal pulldown by default.

Try
digitalWrite(4, 0);
pinMode(4, OUTPUT);
by boarchuz
Fri Aug 07, 2020 1:46 am
Forum: General Discussion
Topic: Is it possible to have data corruption just after a soft restart?
Replies: 17
Views: 859

Re: Is it possible to have data corruption just after a soft restart?

It's not a full reset, eg. RTC domain is not reset. I don't know enough about CAN to know what effect that might have. Maybe there's some register or variable in RTC memory that is in an unexpected state. Try a RTC reset instead of esp_restart? eg. https://github.com/espressif/esp-idf/blob/c77c4ccf6...
by boarchuz
Fri Jul 31, 2020 4:48 pm
Forum: ESP32 IDF
Topic: Transferring STL containers using esp_event_post_to
Replies: 9
Views: 633

Re: Transferring STL containers using esp_event_post_to

Unfortunately no, this is a public event, so the user would have a implicit requirement to delete the data, or there could be an instance where there are multiple event handlers that are going to use this data, so neither of them can delete it as they don't know when it is 'safe' to do so. So yes, ...
by boarchuz
Thu Jul 30, 2020 4:30 pm
Forum: General Discussion
Topic: Allocation of Dynamic Memory
Replies: 2
Views: 244

Re: Allocation of Dynamic Memory

Are you sure it's a stack overflow? You can try increasing the task stack size, or share the code here if you think it shouldn't be happening.

Check those allocs. If you want enough memory for 4096 floats, you'll need 4096 * sizeof(float).
by boarchuz
Wed Jul 15, 2020 3:06 pm
Forum: General Discussion
Topic: Why is the ESP32-S2 so big?
Replies: 2
Views: 405

Re: Why is the ESP32-S2 so big?

More GPIO, and slightly increased pitch.
by boarchuz
Tue Jul 14, 2020 10:08 am
Forum: ESP32 IDF
Topic: ULP wakeup by peripheral signal possible?
Replies: 4
Views: 458

Re: ULP wakeup by peripheral signal possible?

I have an example here now: https://github.com/boarchuz/HULP/blob/master/examples/GPIO_Wakeup/main.cpp I was having trouble with the ULP running at the wrong speed (150 kHz) and everything powering down when the stub ended (killing the ULP in the middle of its program), but simply keeping the ULP sl...
by boarchuz
Sat Jul 11, 2020 10:45 pm
Forum: ESP32 IDF
Topic: ULP wakeup by peripheral signal possible?
Replies: 4
Views: 458

Re: ULP wakeup by peripheral signal possible?

You're right about ESP32 ULP, but ESP32-S2 does add GPIO wakeup to ULP (though I don't think it's implemented yet). A reasonably high wakeup interval will yield very low average current, if the interrupt latency is ok. Even 50ms should be <10uA. If you want to push the envelope, you could implement ...
by boarchuz
Sat Jul 11, 2020 10:35 pm
Forum: ESP32 IDF
Topic: using pthreads
Replies: 8
Views: 770

Re: using pthreads

What's your current CMakeLists.txt?
by boarchuz
Sat Jul 11, 2020 10:34 pm
Forum: Hardware
Topic: RTC timer in deep sleep
Replies: 2
Views: 400

Re: RTC timer in deep sleep

1. I'm not sure, but given the source has a delay in it I'd suggest trying the same: https://github.com/espressif/esp-idf/blob/c1d0daf36d0dca81c23c226001560edfa51c30ea/components/soc/src/esp32/rtc_time.c#L143 especially if you're getting a WDT. Maybe the RTC has lower priority and you need to yield ...
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: 1896

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);...

Go to advanced search