Simulink Support Package for Arduino (ESP32) connection failure

15 次查看(过去 30 天)
Hello, I'm trying to set up the Simulink Support Package for Arduino Hardware with the Arduino Nano ESP32, using Matlab 2023b
When i go through all the steps it seams to work but fails when i test the connection, the build is succesfull but download fails.
When i try to upload the basic example i get this error message
"Failed to connect to Arduino board. If the problem still persists, enter the host COM port number manually in the 'Configuration Parameters > Target hardware resources > Host-board connection' and try again"
When i manually set the host com port i get the same error message.
I have tried adjusting the baud rate for the port and also update the arduino and ESP32 firmware but nothing seams to work.
When i try the firmware setup on a Arduino Nano 33 IoT it works perfectly well.
How can i solve this problem? Thankful for all help

回答(1 个)

Abhishek Kumar Singh
Abhishek Kumar Singh 2024-11-8,17:53
This setup should typically work. Could you please confirm whether you are attempting an ESP32-specific setup and configuration? You can refer to the following link for guidance: www.mathworks.com/help/matlab/supportpkg/configure-setup-for-esp32-hardware.html.
Additionally, does this issue occur across all modes—USB, WiFi, and Bluetooth?
To ensure everything is set up correctly, please verify the correct port by visiting: www.mathworks.com/help/matlab/supportpkg/find-arduino-port-on-windows-mac-and-linux.html.
It's possible that the ESP32 third-party library wasn't installed correctly. Could you try reinstalling the support package and attempting the setup again?
If the problem persists, consider trying a different PC to further diagnose the issue.

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by