Thank you.
I need it for Windows. Is it part of some toolset? I found one but I need Cygwin for that. Will that work?
Search found 15 matches
- Mon Feb 03, 2020 5:53 pm
- Forum: ESP-IDF
- Topic: Can't get unit test to work with IDF 4.0
- Replies: 3
- Views: 4546
- Sun Feb 02, 2020 9:03 pm
- Forum: ESP-IDF
- Topic: Can't get unit test to work with IDF 4.0
- Replies: 3
- Views: 4546
Can't get unit test to work with IDF 4.0
Hi, I want to code in C++ using Visual Studio Code. I am able to compile and run my C++ code including a simple component. Now I want to unit test my component. However, I can't get the unit tests to work. I'm getting the following errors when I try to compile the test app. [806/965] Generating test...
- Tue Sep 04, 2018 5:41 pm
- Forum: ESP-IDF
- Topic: Adding folder s to ESP-IDF template project
- Replies: 8
- Views: 16973
Re: Adding folder s to ESP-IDF template project
I think I found it. The component folder also needs to have an empty component.mk file. The build system will not recognize the components if this file is not present. You can check the component with the folowing command:
Code: Select all
make list-components
- Thu Aug 30, 2018 7:55 pm
- Forum: ESP32 Arduino
- Topic: Problem with flashing ESP32
- Replies: 10
- Views: 18818
Re: Problem with flashing ESP32
I'm sorry this is beyond my knowledge level.
- Thu Aug 30, 2018 7:53 pm
- Forum: ESP-IDF
- Topic: Eclipse cannot resolve type
- Replies: 1
- Views: 3865
Re: Eclipse cannot resolve type
Found the issue. I needed to go to Project Properties -> C/C++ General -> Preprocessor Include Paths, Macros etc. -> Providers -> CDT Cross GCC Built-in Compiler Settings and change the command to: xtensa-esp32-elf-gcc ${FLAGS} -std=c++11 -E -P -v -dD "${INPUTS}" I needed to add the -std=c++11 part.
- Thu Aug 30, 2018 6:31 pm
- Forum: ESP-IDF
- Topic: Eclipse cannot resolve type
- Replies: 1
- Views: 3865
Eclipse cannot resolve type
Not sure this is the right forum but.. Eclipse is driving me nuts. I want to code ESP32 using Eclipse on Linux but I keep running into issues. I have a smaall piece of code that builds and flashed succefully but Eclipse keeps telling me it cannot resolve some types and functions. I added an include ...
- Thu Aug 30, 2018 10:15 am
- Forum: ESP-IDF
- Topic: Adding folder s to ESP-IDF template project
- Replies: 8
- Views: 16973
Re: Adding folder s to ESP-IDF template project
I took the example from the documentation. set(COMPONENT_SRCDIRS ".") set(COMPONENT_ADD_INCLUDEDIRS "include") register_component() My project now looks like this: - components - myclass - include myclass.h myclass,cpp CMakeLists.txt - main main.cpp
- Thu Aug 30, 2018 9:51 am
- Forum: ESP-IDF
- Topic: Adding folder s to ESP-IDF template project
- Replies: 8
- Views: 16973
Re: Adding folder s to ESP-IDF template project
Thanks for the help so far. I renamed to folder to components and I created the structure as described in the documentation. I need to include the component like this from my main.cpp to make it compile. #include "../components/myclass/include/myclass.h" I'd like to be able to specify it like this: ...
- Thu Aug 30, 2018 7:35 am
- Forum: ESP32 Arduino
- Topic: Problem with flashing ESP32
- Replies: 10
- Views: 18818
Re: Problem with flashing ESP32
Can you connect to the board using another tool like putty? Check this: https://docs.espressif.com/projects/esp-idf/en/latest/get-started/establish-serial-connection.html I also encountered boars with a different usb to serial controller. I needed to install these drivers for that: https://sparks.go...
- Thu Aug 30, 2018 7:27 am
- Forum: ESP-IDF
- Topic: Adding folder s to ESP-IDF template project
- Replies: 8
- Views: 16973
Adding folder s to ESP-IDF template project
I am able to write and compile C++ code for the ESP32 using Eclipse on Linux with the ESP-IDF template. However, I would like to store my classes in seperate directories. For some reason I cannot get this to work. Eclipse keeps complaining about not being able to find "myclass.h" My folder structure...