Search found 606 matches

by fly135
Mon Apr 22, 2019 1:36 pm
Forum: ESP-IDF
Topic: HTTP CALL FAILS
Replies: 4
Views: 4659

Re: HTTP CALL FAILS

Do you know if the Wifi connected when those errors occur?
by fly135
Fri Apr 19, 2019 7:37 pm
Forum: ESP-IDF
Topic: (resolved) I2C call panicking system
Replies: 29
Views: 26657

Re: I2C call panicking system

That's true. I've seen a few flavors of strange behavior: - the occasional i2c malloc error - kernel panics (traceable into the i2c library) - heap poisoning (traceable into the i2c library) I did find a possible flaw in my program: the higher level functions using ReadReg were called from two task...
by fly135
Thu Apr 18, 2019 5:59 pm
Forum: General Discussion
Topic: how to flash in Esp32 module
Replies: 3
Views: 4618

Re: how to flash in Esp32 module

LOL good thing you posted a picture or we wouldn't know what CPU you were talking about! :D Be sure to look into GPIO 00 and it's use as a download mode signal during boot. My friend build an Ethernet board and ran the clock into GPIO 00 (the default for ethernet applications). Now the board refuses...
by fly135
Thu Apr 18, 2019 5:55 pm
Forum: ESP-IDF
Topic: Dynamically changing the partition file.
Replies: 2
Views: 4634

Dynamically changing the partition file.

I'm would like to build multiple versions of my app to retain backwards compatibility with devices that must use OTA. I need to change the partition layout going forward, but want to keep the old one for OTA updates. I'm thinking that just building a different version to be OTA'd might be ok, since ...
by fly135
Thu Apr 18, 2019 5:48 pm
Forum: ESP-IDF
Topic: (resolved) I2C call panicking system
Replies: 29
Views: 26657

Re: I2C call panicking system

How so? I use queues for inter-task communication. But my structures are small, and every event loop has a wait at the end. Hard to see how I'd be overconsuming resources with these, especially given how much heap I seem to have available. I'm not convinced that you are having a problem with consum...
by fly135
Thu Apr 18, 2019 5:20 pm
Forum: ESP-IDF
Topic: (resolved) I2C call panicking system
Replies: 29
Views: 26657

Re: I2C call panicking system

mzimmers wrote:
Thu Apr 18, 2019 4:44 pm
Essentially, yes. The program does a few other things (looks at queues for entries), but when the device is left alone, as it was in this case, not much else is really happening.
That might be where your problems lie.
by fly135
Thu Apr 18, 2019 4:00 pm
Forum: ESP-IDF
Topic: (resolved) I2C call panicking system
Replies: 29
Views: 26657

Re: I2C call panicking system

So, if all you do is call that function over and over the program eventually crashes? BTW, I'm using IDF v3.1.3.

John
by fly135
Thu Apr 18, 2019 2:49 pm
Forum: ESP-IDF
Topic: (resolved) I2C call panicking system
Replies: 29
Views: 26657

Re: I2C call panicking system

Why not write the simplest possible program to read the I2C and see if it works without failing? That would get rid of your worries about the underlying library.

John A
by fly135
Thu Apr 18, 2019 2:46 pm
Forum: ESP-IDF
Topic: (resolved) I2C call panicking system
Replies: 29
Views: 26657

Re: I2C call panicking system

I make a series of calls to the i2c library every half second, and according to the tick-stamp, this ran for better than 30 minutes before the malloc error. I'm hard pressed to see how this wouldn't be some kind of bug in the i2c library. I use I2C all the time and am not seeing a mem leak. I do re...