Search found 425 matches

by Deouss
Thu May 17, 2018 12:39 pm
Forum: General Discussion
Topic: Serial monitoring and writing
Replies: 5
Views: 13263

Re: Serial monitoring and writing

Also I am looking for examples with more than one timer interrupts - maybe someone can direct me. The "timer_group" example in examples/peripherals/timer_group sets up two timers in a single timer group and queries the triggering timer in the ISR. For more generic high precision timer requirements,...
by Deouss
Thu May 17, 2018 12:05 pm
Forum: ESP-IDF
Topic: Preview release: CMake-based build system for ESP-IDF
Replies: 65
Views: 79407

Re: Preview release: CMake-based build system for ESP-IDF

Regarding PlatformIO - looks like for now only Python and microPython is supported. There are C files but projects require Python compiler. So best bet is pure VSCode and CMake toolchain. By the way - can you tell me the advantages of CMake over Make ? In other words - what are the differences runni...
by Deouss
Thu May 17, 2018 3:52 am
Forum: General Discussion
Topic: can anybody share code of reading data from uart by using uart interrupt method
Replies: 18
Views: 17311

Re: can anybody share code of reading data from uart by using uart interrupt method

The docs you link here are for an older version of ESP-IDF, V2.0. In V3.0 (current stable release) the docs were rearranged, the equivalent docs page is now here: http://esp-idf.readthedocs.io/en/v3.0/api-reference/peripherals/uart.html To switch to the even newer master branch then you can use the...
by Deouss
Wed May 16, 2018 4:19 pm
Forum: General Discussion
Topic: can anybody share code of reading data from uart by using uart interrupt method
Replies: 18
Views: 17311

Re: can anybody share code of reading data from uart by using uart interrupt method

I am also interested in uart functions Found reference to interrupt handler function esp_err_t uart_isr_register(uart_port_tuart_num, void (*fn)(void *), void *arg, int intr_alloc_flags, uart_isr_handle_t *handle, ) register UART interrupt handler(ISR). Note UART ISR handler will be attached to the ...
by Deouss
Wed May 16, 2018 2:18 pm
Forum: General Discussion
Topic: Serial monitoring and writing
Replies: 5
Views: 13263

Serial monitoring and writing

It is just a simple question related to serial monitor as in Arduino Is this code equivalent to serial.write()/print() ? https://github.com/espressif/esp-idf/blob/master/examples/peripherals/uart_echo/main/uart_echo_example_main.c Also I am looking for examples with more than one timer interrupts - ...
by Deouss
Wed May 16, 2018 1:43 pm
Forum: ESP-IDF
Topic: Preview release: CMake-based build system for ESP-IDF
Replies: 65
Views: 79407

Re: Preview release: CMake-based build system for ESP-IDF

Well, I managed to connect and flash my ESP32 DevKit C. Works like a charm however I hardcoded flash command and port. Turns out all is blasting fast and long compilation is only the first time. It is actually faster than Arduino IDE. I am also checking PlatformIO as it supposingly has support for a...
by Deouss
Wed May 16, 2018 3:09 am
Forum: ESP-IDF
Topic: Preview release: CMake-based build system for ESP-IDF
Replies: 65
Views: 79407

Re: Preview release: CMake-based build system for ESP-IDF

I was able to open project with Visual Studio Code having C++ and Native Debugger installed so IDE was fully working with intellisense and any code modification for the esp compiler. I used CMake setup as in the guides - I am new to this compiler and environment so don't quite understand what is the...
by Deouss
Tue May 15, 2018 6:43 pm
Forum: ESP-IDF
Topic: Preview release: CMake-based build system for ESP-IDF
Replies: 65
Views: 79407

Re: Preview release: CMake-based build system for ESP-IDF

UPDATE: I resolved the errors. Paths for needed headers were actually in Program Files folder - for some reason. All compiled after running idf.py build. Compilation under VS Code I hope I did it right However it took some longer time to build. Not sure because I was using VM and nothing was connect...
by Deouss
Tue May 15, 2018 5:44 pm
Forum: ESP-IDF
Topic: Preview release: CMake-based build system for ESP-IDF
Replies: 65
Views: 79407

Re: Preview release: CMake-based build system for ESP-IDF

I setup required CMake environment and toolchain and I am at step of compiling hello-world but.. I am getting these errors: cannot open source file "stddef.h" (dependency of "sys/cdefs.h") cannot open source file "stddef.h" (dependency of "sys/reent.h") cannot open source file "stddef.h" (dependency...
by Deouss
Fri May 11, 2018 6:20 pm
Forum: General Discussion
Topic: C++ SPI for Max 31855 Thermocouple Amp
Replies: 28
Views: 30072

Re: C++ SPI for Max 31855 Thermocouple Amp

I am intending to rewrite Adafruit MAX thermocouple code to proprietary esp32 one. Ridiculously still fighting with setting sdk on my windows properly and still working with Arduino IDE... Something gets overwritten by VStudio and VSCode and stuff won't compile. I would use timer interrupts for SPI ...