Array indices must be positive integers or logical values error when programming ESP32
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Vinayak
2023-8-4
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Support Package for Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!