UAV Toolbox support package for PX4: Can't connect Pixhawk 1 on simulink, problem with serial port (this board has two)
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I bought the Pixhawk 1 board, because on the website it says that it is compatible with this toolbox ( https://www.mathworks.com/hardware-support/system-requirements.html and https://www.mathworks.com/hardware-support/px4-autopilots.html?s_tid=srchtitle_pixhawk_1 ), as long as you follow the instructions in the link: https://nl.mathworks.com/help/supportpkg/px4/ug/troubleshooting-firmware-upload-px4.html#mw_0ade324d-b301-4a21-a823-9d172b894fbb
Followed all instructions correctly. I did the setup, all ok. When trying to simulate an example there was a problem with the serial port, as the Pixhawk 1 has two serial ports, searching I found this link: https://nl.mathworks.com/help/supportpkg/px4/ug/set-com-port-simulink.html
The problem remains. Apparently if the board is connected, matlab tries to access the bootloader COM port but it is not active, because it activates in the first 5 seconds, so the simulink complains that the port does not exist or that the board is not connected. Now, if I try to connect with the communications COM port, the simulink does not upload the program.
0 commentaires
Réponses (1)
Arun Mathamkode
le 5 Sep 2022
Ensure that you followed the documentation to set upload and bootloader COM port step by step. If you unchecked 'Automatically determine serial port for firmware upload' and entered the bootloader COM port manually under 'build options' tab, then Simulink wont try to check whether the upload COM port is active or not. Once you reconnect the board to the PC for flashing as instructed in the Simulink popup window, then only Simulink look for the bootloader COM port for upload. Also ensure to follow the instruction mentoned in the pop-up as it is. Disconnect the hardware, then click OK and then connect the hardware back.
If the bootloader and communication COM port are correcly entered and if you still facing the issue, you can consider contacting Technical Support with the screenshot of Simulink configset (with COM port values entered) and separate screenshots of the Device manager (for bootloader and communication COM port).
2 commentaires
Daniel Budolak
le 20 Sep 2022
Hi Arun, this seems to not be the case, even when 'Automatically determine serial port' is Unchecked, simulink is still checking for the com port which does not exist. I have the same problem as mentioned above and can't find a solution.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!