Search found 26 matches

by RA5040
Mon Sep 03, 2018 9:09 pm
Forum: ESP-IDF
Topic: Programming in C++
Replies: 48
Views: 110412

Re: Programming in C++

I have built and run a couple of small C++ applications following Neil Kolgan's tutorial ... seems to work fine. However, looking at this thread it's not clear to me how solid the C++/esp-idf environment is at this point. Is it solid enough for serious development, or is it still a work in progress?...
by RA5040
Mon Sep 03, 2018 12:54 pm
Forum: ESP32 Arduino
Topic: Very high stack usage with FreeRTOS and Eclipse-Arduino
Replies: 5
Views: 7637

Re: Very high stack usage with FreeRTOS and Eclipse-Arduino

hmmm ... I'm a bit embarrassed! Thank you for pointing out what should have been obvious (reminder to myself to read the documentation more carefully!!). Regarding the other points: - I did want to get the stack usage of the Blink task, not the loop task - I didn't realize that the xtaskcreate in es...
by RA5040
Mon Sep 03, 2018 6:26 am
Forum: ESP32 Arduino
Topic: Very high stack usage with FreeRTOS and Eclipse-Arduino
Replies: 5
Views: 7637

Re: Very high stack usage with FreeRTOS and Eclipse-Arduino

Eclipse-Arduino (also called Sloeber) is a plugin for Eclipse that allows one to write Arduino code in Eclipse. I've checked the code in the Arduino IDE also and the results are the same. Here is the test code: static TaskHandle_t beeperTaskHandle = NULL; void BeeperTask(void * parameter) { int hilo...
by RA5040
Sun Sep 02, 2018 9:20 pm
Forum: ESP32 Arduino
Topic: Very high stack usage with FreeRTOS and Eclipse-Arduino
Replies: 5
Views: 7637

Very high stack usage with FreeRTOS and Eclipse-Arduino

I had a suspected stack overflow issue and checked stack usage using the FreeRTOS utility function uxTaskGetStackHighWaterMark. The max usage on a task written in Eclipse-Arduino is over 10,000 bytes (2500 words). This task does nothing (it just has a vTaskDelay and nothing else). I then checked the...
by RA5040
Sat Sep 01, 2018 6:43 pm
Forum: ESP-IDF
Topic: Arduino ESP32
Replies: 2
Views: 5061

Re: Arduino ESP32

Thanks, but I already have the Arduino IDE and Eclipse-Arduino (Sloeber). I can also run C/C++ ESP32 programs either from the command line or from Eclipse. My issue is that I have quite a lot of code written for Arduino that I would like to convert to C++. I could do this manually, but it's time-con...
by RA5040
Fri Aug 31, 2018 5:11 pm
Forum: ESP-IDF
Topic: Arduino ESP32
Replies: 2
Views: 5061

Arduino ESP32

Hi, I would like to use Arduino code in Eclipse and from the command line, but I am having difficulties doing so. I've followed the instructions in https://github.com/espressif/arduino-esp32/blob/master/docs/esp-idf_component.md and I got some build errors. I then tried to follow Ibernstone's instru...
by RA5040
Mon Aug 27, 2018 8:57 pm
Forum: ESP-IDF
Topic: OpenOCD problem
Replies: 19
Views: 22301

Re: OpenOCD problem

Hi, no, I haven't tried it on Linux, but there shouldn't be any major differences. The steps that I took I have documented here: http://www.irelandupclose.com/customer/esp32/jtag/ I would really recommend getting it to work on the command line first (the link gives the steps). I'm trying to get it t...
by RA5040
Mon Aug 27, 2018 11:43 am
Forum: ESP-IDF
Topic: Converting code from Arduino to C++ on Eclipse
Replies: 3
Views: 9096

Re: Converting code from Arduino to C++ on Eclipse

I've had a go at that and got a long way (I think). The blink arduino app I used showed no errors (which is a miracle of sorts!). But at this point when I build the project I get the following error: make[1]: Entering directory 'F:/eclipse-cpp-workspace/eita/build/app_update' make[1]: execvp: xtensa...
by RA5040
Mon Aug 27, 2018 9:37 am
Forum: ESP-IDF
Topic: Converting code from Arduino to C++ on Eclipse
Replies: 3
Views: 9096

Re: Converting code from Arduino to C++ on Eclipse

Wow ... the energy in this whole Arduino/ESP32/Eclipse project is amazing! Many thanks! I've created a basic project using the esp-idf-template and I'll use your excellent tutorial to convert that to a C++ project, Arduino-style and see how I get on. BTW ... I seem to be getting back into this at a ...
by RA5040
Sun Aug 26, 2018 1:35 pm
Forum: ESP-IDF
Topic: Eclipse Hardware Debug problem
Replies: 2
Views: 4591

Re: Eclipse Hardware Debug problem

Great, thank you. I went through the instructions very carefully and I didn't get it that OpenOCD had to be run manually, so clarifying that in the instructions would be great! BTW, the instructions are really excellent ... they are very clear and very well written. I've updated my summary for Windo...