Array indices must be positive integers or logical values error when programming ESP32
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi, I got "Array indices must be positive integers or logical values." when I try to program my ESP32 via wifi using the command 'arduinosetup' but when I tried to program it through USB, it is working. How do I fix the error? Would really appreciate any kind of help. Thanks!
0 Commenti
Risposte (1)
Vinayak
il 4 Ago 2023
Hi,
Its a little difficult to ascertain the root cause of the issue without the relevant code files.
According to the error message, some portion of your code accesses an invalid location of an array which eventually causes it to break and error out.
I would request you to try debugging by placing breakpoints wherever the array indices are getting updated as it would give you a deeper understanding of where exactly the code breaks.
Also verify that you are on a stable wifi and check if there are any issues with the WiFi setup that might be causing the error.
Addtionally, make sure that you have the latest versions of the required libraries and firmware for programming the ESP32 via WiFi. Outdated versions can sometimes cause compatibility issues and errors.
If nothing seems to work, please consider reaching out to the ESP32 community or the specific library's support channels for assistance. They may be able to provide more specific guidance based on the details of your code and setup.
Hope it helps,
Thanks.
0 Commenti
Vedere anche
Categorie
Scopri di più su MATLAB Support Package for Arduino Hardware in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!