Search found 13 matches

by dspau1
Thu Jun 08, 2017 5:29 am
Forum: General Discussion
Topic: Calling xTaskCreate on C++ member function?
Replies: 10
Views: 23974

Re: Calling xTaskCreate on C++ member function?

Thanks for the super quick reply! Taking a look at your c++ abstractions now. Sounds like an excellent asset for the ESP32 platform. I also sent you a private message.
by dspau1
Thu Jun 08, 2017 4:36 am
Forum: General Discussion
Topic: Calling xTaskCreate on C++ member function?
Replies: 10
Views: 23974

Calling xTaskCreate on C++ member function?

Hi all, just wondering how to call xTaskCreate on a member function in a c++ class? The intent is as per the code below, which does not compile with the error "reference to a non-static member function must be called". Also open to suggestions if there is a better way to achieve the same result whil...
by dspau1
Wed Jun 07, 2017 9:10 am
Forum: General Discussion
Topic: JTAG Problems
Replies: 6
Views: 10708

Re: JTAG Problems

SOLVED: If ESP32 is running in single core mode, cpu1 will fail to halt when attempting to program/debug via JTAG using VisualGDB. Not sure if this also impacts other OpenOCD environments. The solution is to explicitly enable dual core mode in MAKE CONFIG tool, and flash the ESP32 with this config ...
by dspau1
Wed Jun 07, 2017 5:24 am
Forum: General Discussion
Topic: JTAG Problems
Replies: 6
Views: 10708

Re: JTAG Problems

To be honest I don't know how to run OpenOCD commands directly. I have a more detailed log however, and I can see the "mon reset halt" command is being issued. Google tells me that I'm not the only one seeing the cpu1 not halted error, so I'm hoping someone can jump in and help out. mon reset halt &...
by dspau1
Tue Jun 06, 2017 12:39 pm
Forum: General Discussion
Topic: JTAG Problems
Replies: 6
Views: 10708

JTAG Problems

Hi all, I'm trying to get JTAG programming up and running and having no success. The error appears to be "esp32.cpu1: target not halted". The setup is: - Espressif ESP32 Dev Kit C - TIAO TUMPA JTAG Adapter (v2) - VisualGDB v5.2r9 for programming / debugging I have connected the following JTAG pins: ...
by dspau1
Sun Jan 29, 2017 9:50 am
Forum: General Discussion
Topic: Store and read static pages in flash
Replies: 9
Views: 13955

Re: Store and read static pages in flash

You could do it all inline in the one html file - css and js in their respective head tags, and images can be inlined using base64 encoding: <img alt="Embedded Image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..." /> Base64 will of course increase the file size of the images a bit, so g...
by dspau1
Sun Jan 29, 2017 9:40 am
Forum: General Discussion
Topic: embedded images in html file with xxd ?
Replies: 2
Views: 6003

Re: embedded images in html file with xxd ?

If it's only a couple of images on the page you could embed them directly in the html as base64 before you convert the html to hex array: <img alt="Embedded Image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..." /> If you want to be super efficient , gzip the html page including the embe...
by dspau1
Sun Jan 29, 2017 4:51 am
Forum: General Discussion
Topic: Capacitive touch example?
Replies: 7
Views: 17090

Re: Capacitive touch example?

Any official word on touch driver updates for esp-idf v2? I see in the v2 release notes under "New drivers" is "touch pad"...

My vote would be for a touch pad ISR service similar to GPIO.
by dspau1
Sun Jan 22, 2017 3:11 pm
Forum: General Discussion
Topic: Capacitive touch example?
Replies: 7
Views: 17090

Re: Capacitive touch example?

Ok thanks, I'll take a look at the arduino code.

My expectation was that idf would abstract away most of the uglyness - having to read and write registers directly etc. Is this a symptom of the early stage of development, or am I misunderstanding the purpose of idf?
by dspau1
Sun Jan 22, 2017 6:28 am
Forum: General Discussion
Topic: Capacitive touch example?
Replies: 7
Views: 17090

Re: Capacitive touch example?

Hi Neil, thanks for the reply... I'm ok with the first part after some head scratching re parameter names: * touch_pad_init();//only init one time * touch_pad_config(0,300);//set the intr threshold,use touch_pad_read to determine this threshold * touch_pad_isr_handler_register(rtc_intr,NULL, 0, NULL...