Troubleshooting ESP32-WROOM/ESP32WROVER Setup Error in Simulink Support Package for Arduino Hardware

When attempting to set up the ESP32-WROOM/ESP32-WROVER board in Simulink using the 'Setup Hardware' option, I encounter an error during the final verification step. Specifically, when clicking on 'Test Connection,' the download status fails. It is worth noting that the driver for the ESP32 is correctly installed. How can I resolve this issue?

 採用された回答

The encountered error is related to the installed ESP32 package. To resolve this issue, you need to update the board.txt present inside the arduino ide package and add the following line at the end of this file:
esp32wrover.upload.speed=921600
This command sets the upload speed to 921600, which is a recommended value for the ESP32-WROOM and WROVER boards. After adding this line to the end of board.txt file, save the changes and run the hardware setup again. This time, it should successfully verify the setup and establish a connection with your ESP32-WROOM board.
To open the board.txt file, run the following command in matlab command window:
Windows:
edit(fullfile(arduino.supportpkg.getIDERoot,'portable','packages','esp32','hardware','esp32','1.0.6','boards.txt'))
Linux:
edit(fullfile(arduino.supportpkg.getIDERoot,'portable','packages','esp32','hardware','esp32','1.0.6','boards.txt'))
Mac:
edit(fullfile(arduino.supportpkg.getIDERoot,'idepkgs','packages','esp32','hardware','esp32','1.0.6','boards.txt'))
Note: This workaround will work only in MATLAB R2023b and earlier versions.

6 件のコメント

But it is not working for me with ESP32 Wroom, same error download application failed.
Hello Hitoshi, Siva Prasad,
Please try adding the line "esp32.upload.speed = 921600" to the same file suggested above and see if that works.
Devni
Devni 2024 年 8 月 17 日
編集済み: Devni 2024 年 8 月 17 日
I'm having the same issue with the MATLAB 2024a version. I've tried to edit board.txt but seems like the given line of code is not working in my case. Any leads to fix this issue.
nes
nes 2024 年 8 月 26 日
please have you find the solution ? i'm facing the same problem
@Devni @nes did you solve the problem? I'm encountering the same problem with ESP32-WROOM_DevKitC.
This worked for me

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Support Package for Arduino Hardware についてさらに検索

製品

リリース

R2023a

質問済み:

2023 年 8 月 7 日

コメント済み:

2025 年 3 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by