Search found 11 matches

by dmitrij999
Tue Apr 23, 2019 5:16 pm
Forum: ESP32 IDF
Topic: CPP: Invalid convertions and sorry-unimplemented's error while translating it from C
Replies: 3
Views: 1133

Re: CPP: Invalid convertions and sorry-unimplemented's error while translating it from C

I know about these problems, but I mean problems with structures
by dmitrij999
Mon Apr 22, 2019 5:32 pm
Forum: ESP32 IDF
Topic: CPP: Invalid convertions and sorry-unimplemented's error while translating it from C
Replies: 3
Views: 1133

CPP: Invalid convertions and sorry-unimplemented's error while translating it from C

I edit and try to convert the code in c++ but it gives the following error: dmitrij999@dmitrij999-Inspiron-3520:~/esp/a2dp_sink_cpp$ make fatal: Not a git repository: /home/dmitrij999/esp/a2dp_sink/esp-idf/.git/modules/components/asio/asio Toolchain path: /home/dmitrij999/esp/xtensa-esp32-elf/bin/xt...
by dmitrij999
Sun Mar 24, 2019 6:22 pm
Forum: ESP32 IDF
Topic: LoadStoreError while concatenating strings
Replies: 4
Views: 1426

Re: LoadStoreError while concatenating strings

WiFive wrote:
Sun Mar 24, 2019 6:16 pm
You also moved json_string to a stack variable so your task better have a large stack.
It has 32768 bytes stack
by dmitrij999
Sun Mar 24, 2019 2:10 pm
Forum: ESP32 IDF
Topic: LoadStoreError while concatenating strings
Replies: 4
Views: 1426

Re: LoadStoreError while concatenating strings

https://stackoverflow.com/questions/18838933/why-do-i-first-have-to-strcpy-before-strcat I changed my code, and now I get LoadProhibited error Code: esp_err_t http_list_files(httpd_req_t *req) { spiffs_file *f_list; char json_string[2048]; int char_ptr = 0; //string json; char buf; int ret; printf(...
by dmitrij999
Sun Mar 24, 2019 7:00 am
Forum: ESP32 IDF
Topic: LoadStoreError while concatenating strings
Replies: 4
Views: 1426

LoadStoreError while concatenating strings

Hardware: ESP32-WROOM ESP-IDF: Latest I want to return file list in SPIFFS in browser on address http://<esp32.ip>/fs_list but I get the following error: File list has been requested... Beginning of serialization... 5 files has been found SPIFFS: free 785 KB of 934 KB ------------------------------...
by dmitrij999
Sat Mar 09, 2019 3:42 pm
Forum: ESP32 IDF
Topic: RDA5807M gets i2c commands but ESP32 cannot read (i2c null address error)
Replies: 7
Views: 2088

Re: RDA5807M gets i2c commands but ESP32 cannot read (i2c null address error)

I did some changes in getRegister function. Its code: uint16_t getRegister(uint8_t reg) { uint16_t result; uint8_t h = 0; uint8_t l = 0; esp_err_t ret; ESP_LOGI(FM_TAG, "I2C number: %d", i2c_port_num); //vTaskDelay(500 / portTICK_RATE_MS); // Действуем по алгоритму, описанному в документации ESP-IDF...
by dmitrij999
Sat Mar 09, 2019 1:58 pm
Forum: ESP32 IDF
Topic: RDA5807M gets i2c commands but ESP32 cannot read (i2c null address error)
Replies: 7
Views: 2088

Re: RDA5807M gets i2c commands but ESP32 cannot read (i2c null address error)

It is not related to i2c address. It means memory address of a bad pointer. I compare my code with example code. Code from example: static esp_err_t i2c_example_master_read_slave(i2c_port_t i2c_num, uint8_t* data_rd, size_t size) { if (size == 0) { return ESP_OK; } i2c_cmd_handle_t cmd = i2c_cmd_li...
by dmitrij999
Wed Mar 06, 2019 11:15 am
Forum: ESP32 IDF
Topic: RDA5807M gets i2c commands but ESP32 cannot read (i2c null address error)
Replies: 7
Views: 2088

Re: RDA5807M gets i2c commands but ESP32 cannot read (i2c null address error)

WiFive wrote:
Tue Mar 05, 2019 3:25 am
It is not related to i2c address. It means memory address of a bad pointer.
I have no idea how to fix it :(
by dmitrij999
Mon Mar 04, 2019 8:38 pm
Forum: ESP32 IDF
Topic: RDA5807M gets i2c commands but ESP32 cannot read (i2c null address error)
Replies: 7
Views: 2088

Re: RDA5807M gets i2c commands but ESP32 cannot read (i2c null address error)

WiFive wrote:
Mon Mar 04, 2019 1:38 am
I think that error means you passed a null pointer to one of the i2c functions. If you check return codes and add error logging you will be able to figure out where that happens.
I defined addrrsses in private.h

Go to advanced search