Search found 71 matches

by meowsqueak
Tue Feb 20, 2018 4:26 am
Forum: General Discussion
Topic: Write to output port of ESP-WROOM-32
Replies: 3
Views: 61

Re: Write to output port of ESP-WROOM-32

If it's one of the HD44780-compatible LCD displays, you could use an I2C I/O expander (PCF8574A) like this one . They are about a dollar on AliExpress. Then you'll be able to use a library like this one which I'm using currently with a 16x2 character LCD. Or if you want to interface the ESP32 direct...
by meowsqueak
Sun Feb 18, 2018 12:12 am
Forum: ESP32 SDK
Topic: I2C crash with release/v3.0 - what's an effective way to debug this?
Replies: 22
Views: 857

Re: I2C crash with release/v3.0 - what's an effective way to debug this?

I don't see why it would be a problem. You may want to look at the comments and code here https://github.com/espressif/arduino-esp32/issues/1093 Thanks, I'll take some time to look through that. It looks like I2C problems on the ESP32 are encountered fairly often and the hardware FSM bug looks like...
by meowsqueak
Sat Feb 17, 2018 11:58 pm
Forum: ESP32 SDK
Topic: I2C crash with release/v3.0 - what's an effective way to debug this?
Replies: 22
Views: 857

Re: I2C crash with release/v3.0 - what's an effective way to debug this?

Bumping this in the hope that ESP_<someone> replies as my project is pretty much unimplementable with the ESP32 as things stand right now. At the very minimum I need confirmation that the unconditional "FSM reset at start-up" workaround isn't going to cause other problems (need someone wit...
by meowsqueak
Mon Feb 12, 2018 8:22 pm
Forum: General Discussion
Topic: route (overlap) gpio to another without wiring
Replies: 6
Views: 759

Re: route (overlap) gpio to another without wiring

I don't have time at the moment to fully explain my code, however to answer your questions as best I can: I haven't specifically tried connecting the PCNT input to the LEDC output, however based on my understanding of the I/O mux / GPIO matrix, it should be possible via a "connecting" GPIO...
by meowsqueak
Sat Feb 10, 2018 1:49 am
Forum: ESP32 SDK
Topic: I2C crash with release/v3.0 - what's an effective way to debug this?
Replies: 22
Views: 857

Re: I2C crash with release/v3.0 - what's an effective way to debug this?

Quick update: the current hypothesis is that it's an issue with "too many interrupts" causing the ISR to take too long to complete, triggering the watchdog timer. When I get time I should be able to prove this with some logging and some experiments with varying the watchdog timer. I've fou...
by meowsqueak
Sat Feb 10, 2018 1:45 am
Forum: ESP32 SDK
Topic: Simple MQTT with C++ and IDF
Replies: 9
Views: 397

Re: Simple MQTT with C++ and IDF

The problem with tuanpmt/espmqtt is that it's fundamentally broken. It treats TCP as a packet interface, not as a stream, so it only sends or receives the first message in a transmission. It will drop messages all over the place. I looked into fixing it, but in the end it was simpler to just use 256...
by meowsqueak
Thu Feb 08, 2018 9:32 am
Forum: General Discussion
Topic: Coverity and ESP32-projects
Replies: 2
Views: 151

Re: Coverity and ESP32-projects

I am interested in using Coverity at some stage, so if you find a solution please return and let us know.
by meowsqueak
Thu Feb 08, 2018 9:22 am
Forum: General Discussion
Topic: route (overlap) gpio to another without wiring
Replies: 6
Views: 759

Re: route (overlap) gpio to another without wiring

You cannot internally connect a RMT output to a PCNT input. If you want to do this you must use two GPIO pins and externally wire them together. Actually you only need one GPIO to do this, with no external wiring required. Set up a GPIO as both the RMT output and the PCNT input. I do this here: htt...
by meowsqueak
Thu Feb 01, 2018 8:21 pm
Forum: ESP32 SDK
Topic: I2C crash with release/v3.0 - what's an effective way to debug this?
Replies: 22
Views: 857

Re: I2C crash with release/v3.0 - what's an effective way to debug this?

Actually, your code is crashing because a call to ESP_ERROR_CHECK failed - whatever it's calling within (see your main.c:164) is returning an ESP error code, and this causes an assert that causes a reboot. This is intentional - so you need to check what function is returning the error code. It might...
by meowsqueak
Thu Feb 01, 2018 8:19 pm
Forum: ESP32 SDK
Topic: I2C crash with release/v3.0 - what's an effective way to debug this?
Replies: 22
Views: 857

Re: I2C crash with release/v3.0 - what's an effective way to debug this?

EDIT: ignore all this, see next message. With your build/project-name.elf file, can you do what ESP_Angus suggested with gdb "info line" to make sure the backtrace line numbers are correct? Something like: $ xtensa-esp32-elf-gdb build/ulp_cc_templogger.elf (gdb) info line *0x400883...

Go to advanced search