Search found 98 matches

by meowsqueak
Fri Oct 19, 2018 11:09 am
Forum: ESP32 IDF
Topic: i2c bug in 3.0, works with older idf
Replies: 6
Views: 589

Re: i2c bug in 3.0, works with older idf

I thought we'd been through all of this with 2.x? I spent countless hours debugging the i2c driver, investigating with brushing wires together, debugging the interrupt handler, finally concluding with a workaround for a hardware bug. Are we now saying that the 3.x driver is broken again? I haven't u...
by meowsqueak
Wed Jun 27, 2018 5:27 am
Forum: ESP32 IDF
Topic: Debugging ESP32 programs on Linux using an "ESP32 Emulator Library"
Replies: 7
Views: 4583

Re: Debugging ESP32 programs on Linux using an "ESP32 Emulator Library"

The Ebiroll QEMU project is really interesting in my opinion, because it's relatively easy to write device drivers "on the other side" of the emulation, then develop ESP32 code against those, allowing the exact same code to run on the target hardware or inside QEMU. What would be super-useful is if ...
by meowsqueak
Sat Jun 09, 2018 7:24 am
Forum: ESP32 IDF
Topic: Getting the uptime
Replies: 7
Views: 3365

Re: Getting the uptime

esp_timer_get_time() returns an int64_t so [-2³²,+2³²] is the max.
As ESP_Sprite said, you've got your math wrong. It will overflow after 292,000 years. Should be long enough for most IoT apps and even some enterprise applications.
by meowsqueak
Fri Apr 27, 2018 2:47 am
Forum: ESP32 IDF
Topic: OpenOCD ESP32 - Erase
Replies: 8
Views: 833

Re: OpenOCD ESP32 - Erase

I've also had JTAG debug/flash programming success on the ESP32 with this one:

http://www.ftdichip.com/Support/Documen ... _CABLE.PDF

It's based on the FTDI FT232H device.
by meowsqueak
Mon Apr 16, 2018 8:15 pm
Forum: General Discussion
Topic: multi-thread I2C synchronization
Replies: 9
Views: 1010

Re: multi-thread I2C synchronization

No, I'm not sure now - I hadn't seen that warning before. I thought I'd looked at the source in the past and seen a lock. Sorry for sowing confusion. I'll edit my comment. Incidentally I am using a mutex for my own project, as I needed to ensure that tasks had exclusive use of individual slaves.
by meowsqueak
Mon Apr 16, 2018 7:01 am
Forum: General Discussion
Topic: ESP_LOG(I/W/E) vs printf for debug
Replies: 4
Views: 576

Re: ESP_LOG(I/W/E) vs printf for debug

I like the ESP_LOGx macros because you can enable/disable them at runtime. For example, hook up some appropriate MQTT topics and you've got yourself a run-time selectable debug log.
by meowsqueak
Mon Apr 16, 2018 6:56 am
Forum: General Discussion
Topic: multi-thread I2C synchronization
Replies: 9
Views: 1010

Re: multi-thread I2C synchronization

I should be using a single I2C controller(I2C 0 OR I2C 1) for both I2C slaves, since I have access to a single I2C bus on the hardware? You can use a single I2C master controller for both of your I2C slaves provided they will work at the same SCK rate. EDIT: My comment here is most likely wrong - i...
by meowsqueak
Mon Apr 16, 2018 6:11 am
Forum: General Discussion
Topic: Flashing an AVR OTA by using ESP32 as a tunnel?
Replies: 5
Views: 1294

Re: Flashing an AVR OTA by using ESP32 as a tunnel?

I figured it out! Expect a component some time in the future, once I work out the oddities here and there. I figure it might be useful for other people as well.
I'm interested - do you have your component on github?
by meowsqueak
Sat Apr 07, 2018 9:44 pm
Forum: ESP32 Arduino
Topic: Newbie in need of a little help (DS18B20)
Replies: 12
Views: 1237

Re: Newbie in need of a little help (DS18B20)

Actually, there is a recommended parasitic configuration that uses two output pins from your CPU, one to drive a MOSFET to provide a better power supply for the single data/power wire. See Figure 6 in https://datasheets.maximintegrated.com/ ... S18B20.pdf
by meowsqueak
Thu Apr 05, 2018 9:41 pm
Forum: General Discussion
Topic: getLocalTime(&local); Definitions of time zones
Replies: 4
Views: 913

Re: getLocalTime(&local); Definitions of time zones

https://www.google.com/search?q=zoneinfo Exactly that was not useful to find the solution. It was not a matter of defining the time zones, but which syntax to use . I had the same problem - usually with most environments I'd use TZ="Pacific/Auckland" or sometimes ":Pacific/Auckland", which is what ...

Go to advanced search