Search found 97 matches

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

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-use...
by meowsqueak
Sat Jun 09, 2018 7:24 am
Forum: ESP32 IDF
Topic: Getting the uptime
Replies: 7
Views: 2512

Re: Getting the uptime

shelladdicted wrote: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: 591

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

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

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

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: 4
Views: 981

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

Resch2061 wrote: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: 794

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

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&q...
by meowsqueak
Thu Apr 05, 2018 8:57 pm
Forum: General Discussion
Topic: Update to Kolban's ESP32 Book is Available
Replies: 10
Views: 921

Re: Update to Kolban's ESP32 Book is Available

Thanks Neil, that first link answers my question I think - seems like the key is to select a second book, and then the whole reader account thing swings into action. I'll have to give that a try... Thank you for asking them, and again, for your excellent book. EDIT: I bought a second book and when I...

Go to advanced search