Closed manuellapanza closed 1 year ago
Tell me the version of ESP-IDF you are using
I'm using version 4.4
I tried it with ESP-IDF V4.4 and there is no problem. I used the base sample. My board is ESP32.
I (357) task_rx: Start
I (3977) lora_read_reg_buffer: start
I (3977) lora_read_reg_buffer: end
I (3977) task_rx: 19 byte packet received:[Hello World!! 14172]
I (9037) lora_read_reg_buffer: start
I (9037) lora_read_reg_buffer: end
I (9037) task_rx: 19 byte packet received:[Hello World!! 14678]
my environment:
$ idf.py --version
ESP-IDF v4.4.3-347-g9ee3c8337d
Are you using my basic example? Are you using esp-idf V4.4.3?
I tested it with the example, and it really works. I'm using the library for a larger project with a slightly larger amount of data when sending and receiving packets, I don't know if that could be influencing this error... Here is my version:
> idf.py --version
ESP-IDF v4.4
I think it was supposed to be working haha. The only problem is with the lora_read_reg_buffer, even the lora_write_reg_buffer works correctly
And I also tested it in my project by setting BUFFERIO to 0 and it works, but I also wanted to know because in the comment it says that using this is a little faster, how much faster would it be? Does it make that much of a difference? Because this agility would be great for my project
The cause of the error is either: ESP-IDF version is too old. Heap corruption due to buffer overrun.
ESP-IDF v4.4
It is too older version. You can update below.
mv esp-idf esp-idf.old
git clone -b release/v4.4 --recursive https://github.com/espressif/esp-idf.git
cd esp-idf
./install.sh
If you search for ESP-IDF issues with "multi_heap_free", you will find several hits. https://github.com/espressif/esp-idf/issues?q=multi_heap_free
There is a high possibility that it will be solved by upgrading ESP-IDF.
I will close this issue.
You can RE-OPEN at any time.
hi, I'm testing this library but I'm having a specific problem of heap poisoning in void function _lora_read_regbuffer. Every time a packet is received the esp idf terminal returns this error:
I tried commenting out this line from free(in) l.131. It works, but doing so leaks memory in the code. I've already tried to put some prints in the function to see if I could find the reason for this heap poisoning error, but I couldn't. Could you help me with some solution to this problem please?