Search found 64 matches

by rwel59
Tue Apr 24, 2018 12:32 am
Forum: General Discussion
Topic: ERROR running ADC Example: invalid conversion from 'void*'
Replies: 4
Views: 297

Re: ERROR running ADC Example: invalid conversion from 'void*'

Angus,
that is exactly what I did. just started looking at using the ADC's and copied the code from the espidf example.

thanks, I will keep that in mind next time I cut & paste.
by rwel59
Sat Apr 21, 2018 6:14 pm
Forum: General Discussion
Topic: ERROR running ADC Example: invalid conversion from 'void*'
Replies: 4
Views: 297

ERROR running ADC Example: invalid conversion from 'void*'

starting on some adc stuff and grabbed the example ( esp-idf/examples/peripherals/adc/main/adc1_example_main.c) compiler errors out on this line: adc_chars = calloc(1, sizeof(esp_adc_cal_characteristics_t)); with the following error: error: invalid conversion from 'void*' to 'esp_adc_cal_characteris...
by rwel59
Mon Apr 02, 2018 11:44 am
Forum: General Discussion
Topic: Functions to display current tasks and memory usage
Replies: 3
Views: 237

Re: Functions to display current tasks and memory usage

I'm assuming that turning on the trace will impact size (and maybe performance)? Are there any non-debugging facilities available to get this info as part of 'normal' code operations?
by rwel59
Mon Apr 02, 2018 3:03 am
Forum: General Discussion
Topic: Functions to display current tasks and memory usage
Replies: 3
Views: 237

Functions to display current tasks and memory usage

I thought that I had seen references to a couple of functions but having trouble finding them again (or maybe it was my imagination). - Is there a function that I can call in code to determine what tasks are currently running, or at least if a specific (named) task is running - Is there a function t...
by rwel59
Fri Mar 30, 2018 5:31 pm
Forum: ESP32 IDF
Topic: cJSON std::string heap corruption crash
Replies: 4
Views: 350

Re: cJSON std::string heap corruption crash

UPDATE: Couple of observations. I had my setup structure defined in another cpp (stores.cpp) and declared extern in TransformJSON.cpp - this was the situation when getting the crash. I defined a new structure variable in transformJSON.cpp and did not get the failure. I am loading the setup struct fr...
by rwel59
Fri Mar 30, 2018 2:22 pm
Forum: ESP32 IDF
Topic: cJSON std::string heap corruption crash
Replies: 4
Views: 350

Re: cJSON std::string heap corruption crash

Added more error checks to validate json. code runs until setting the struct variable to obj.getString then fails... CODE: case SET_NETWORK: ESP_LOGI(TAG, "getFreeHeapSize %d", System::getFreeHeapSize()); ESP_LOGI(TAG, "SET_NETWORK %d", heap_caps_check_integrity_all(true)); ESP_L...
by rwel59
Fri Mar 30, 2018 12:58 am
Forum: ESP32 IDF
Topic: cJSON std::string heap corruption crash
Replies: 4
Views: 350

Re: cJSON std::string heap corruption crash

Angus, attached is full console log where heap corruption starts. This code was working fine before recent update to espidf, toolchain with a few exceptions - I've seen it a couple of times in the past but ignored it. Now it happens every time I go through this cycle. This is the code that is failin...
by rwel59
Thu Mar 29, 2018 3:09 am
Forum: ESP32 IDF
Topic: cJSON std::string heap corruption crash
Replies: 4
Views: 350

cJSON std::string heap corruption crash

I just updated to latest version espidf + toolchain and am now crashing with what seems like the same or related error. The first log message prints the expected json object data. The next 2 log messages print fine. I crash every time before getting to last log message. config::network.hubIP is a st...
by rwel59
Thu Mar 29, 2018 12:17 am
Forum: General Discussion
Topic: NVS data corrupted after updating code
Replies: 0
Views: 150

NVS data corrupted after updating code

I am saving wifi configuration data in nvs. After I updated the code and re-flashed, the program retrieves stored ssid/password. The parameters are stored in std::string. There are no errors on retrieval, the strings retrieved are the proper lengths but they contain all null characters. I've done th...

Go to advanced search