Search found 51 matches

by nvannote
Mon Apr 20, 2020 2:20 am
Forum: ESP-IDF
Topic: component include problem
Replies: 4
Views: 9188

Re: component include problem

160+ Views and no one saw the mistake ... :roll: :shock: Nobody saw the mistake because nothing obvious is known about your build/configuration files. Don´t know what this means for the coding community arround here... Don't think it means anything, other than people are busy and picking through an...
by nvannote
Fri Apr 17, 2020 7:01 am
Forum: General Discussion
Topic: Esp32 eclipse settings
Replies: 3
Views: 5324

Re: Esp32 eclipse settings

I'm having some issues programming esp32. The warning say "Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header." . Now, I know the problem is that a wrong parameter is configured, but I'm a newbie with Eclipse and I don't know where...
by nvannote
Fri Apr 17, 2020 6:33 am
Forum: General Discussion
Topic: Cmake is not looking for components in EXTRA_COMPONENT_DIRS
Replies: 6
Views: 9942

Re: Cmake is not looking for components in EXTRA_COMPONENT_DIRS

I tried it this way, but get the same error. How should one link to the some_shared_component from inside the project components that REQUIRE it? What may be different is in my case; in my primary projects "main" source directory CMakeLists.txt; I have following line. The normal idf_component_regis...
by nvannote
Fri Apr 10, 2020 6:50 am
Forum: General Discussion
Topic: Cmake is not looking for components in EXTRA_COMPONENT_DIRS
Replies: 6
Views: 9942

Re: Cmake is not looking for components in EXTRA_COMPONENT_DIRS

Ok, I actually had a couple of projects that could benefit from the same scenario (shared custom component). To date, (being on a unix’y machine) I had just created a symbolic link to the shared component in each projects “components” directory and that works just fine. So, I removed that and attemp...
by nvannote
Fri Apr 10, 2020 4:51 am
Forum: General Discussion
Topic: Cmake is not looking for components in EXTRA_COMPONENT_DIRS
Replies: 6
Views: 9942

Re: Cmake is not looking for components in EXTRA_COMPONENT_DIRS

While I am not familiar with the exact structure of your project and CMakeLists.txt files outside of the “brief” you shared; I will make an attempt. In your original set statement... set(EXTRA_COMPONENT_DIRS, "PROJECT_DIR/../common") Try changing that to something along the lines of... set(EXTRA_COM...
by nvannote
Thu Apr 09, 2020 6:06 am
Forum: General Discussion
Topic: ESP32 & cJSON - Fail to create large cJSON arrays
Replies: 3
Views: 5848

Re: ESP32 & cJSON - Fail to create large cJSON arrays

ferni9 wrote:
Tue Apr 07, 2020 7:51 pm
You were completely right, I was running out of heap space, thank you!
Solution to this is quite straightforward though: create many smaller arrays and send/free them one by one, instead of a larger one ;)
Exactly...

Cheers
by nvannote
Sun Apr 05, 2020 10:59 am
Forum: ESP-IDF
Topic: How to get IP address?
Replies: 7
Views: 17761

Re: How to get IP address?

Hi Mithras , Looking at the code you posted; you're calling esp_netif_get_ip_info with a network interface of IP_EVENT_STA_GOT_IP which is an event type, not an interface. You probably wanted to use ESP_IF_WIFI_STA . Note, While I do have a snapshot of v4.1-beta; I am currently setup for v4.0 relea...
by nvannote
Sun Apr 05, 2020 8:04 am
Forum: General Discussion
Topic: ESP32 & cJSON - Fail to create large cJSON arrays
Replies: 3
Views: 5848

Re: ESP32 & cJSON - Fail to create large cJSON arrays

I took a quick look at the cJSON implementation and yes, at 3200 add(s), I am confident you are hitting the heap ceiling. It’s not a limitation of cJSON itself. There isn’t much that can go wrong in AddNumberToObject other than an allocation failure. Never assume something succeeded, check results a...
by nvannote
Wed Nov 20, 2019 8:00 pm
Forum: General Discussion
Topic: C library linkage fail in C++
Replies: 7
Views: 9252

Re: C library linkage fail in C++

While I did not flash a device to do a test run (I am sure it will work fine); This works perfectly fine for me (both as C and as C++). #include <stdio.h> #include <tinyexpr.h> #ifdef __cplusplus extern "C" #endif void app_main() { printf("%f\n", te_interp("5*5", 0)); /* Prints 25. */ } I suspect w...
by nvannote
Tue Nov 19, 2019 7:28 pm
Forum: General Discussion
Topic: Inheritance usage resulting in code restart.
Replies: 1
Views: 2070

Re: Inheritance usage resulting in code restart.

Hi kreakemp, Your using malloc to allocate a virtual C++ class which will certainly not initialize it correctly and will also not call any constructors. This will crash and burn on any platform. Replace that malloc with. ptr = new test(); In the case when it works without inheritance; there is no vi...