Array indices must be positive integers or logical values error when programming ESP32

1 Ansicht (letzte 30 Tage)
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!

Antworten (1)

Vinayak
Vinayak am 4 Aug. 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.

Kategorien

Mehr zu MATLAB Support Package for Arduino Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by