problem with building PX4 code using simulink

4 vues (au cours des 30 derniers jours)
Jakub Lesko
Jakub Lesko le 15 Jan 2020
Commenté : John conner le 28 Fév 2024
Hello everyone.
I recently wanted to upload example simulink model to pixhawk using cygwin but the uploading process got stuck at Building part. (see attachment).
I can not stop it neither close the diagnostics window. I did reconnect Pixhawk after prompt and clicked OK until 5 seconds has passed. Can anybody help me with this issue ? What could be reason of this bug ?
Thanks in advanceKomentár 2020-01-15 100318.png
  1 commentaire
John conner
John conner le 28 Fév 2024
I have the same problem.
After building firmware and reconnecting the pixhawk. it finds out that the pixhawk is connected by parsing "Using COM3 for upload".
Then in the next line it says "Loaded firmware for board id: 50,0 size: 1932313 bytes (93.60%), waiting for the bootloader..."
But it doesn't matter how patient you are, it never end uploading.
I have another pc which is connected to internet, I never faced any issues like that.

Connectez-vous pour commenter.

Réponses (1)

Chidvi Modala
Chidvi Modala le 30 Jan 2020
Before deploying code to any Pixhawk board from Simulink, it is required to reconnect the board to the computer. After reconnecting the board, it boots up in bootloader mode and stats in bootloader for approx. 5 seconds before launching the main firmware. For flashing the firmware, we need the board to be in bootloader mode. Hence a pop-up dialog comes up as shown below after clicking the build button asking the user to reconnect the board.
rtaImage.png
However, the user needs to click OK on the pop-up within 5 seconds after reconnecting the board to PC. Otherwise the board will come out of bootloader mode and we will be unable to flash the firmware of the board. The expected workflow after clicking the build button in Simulink is below:
1. Wait for the above pop-up dialog to appear.
2. When the pop-up appears, disconnect the Pixhawk board from computer. Do not click OK at this stage.
3. Reconnect the Pixhawk board. Click OK after reconnecting as soon as possible (it is recommended to click OK within 5 seconds after reconnecting).
4. After a couple of seconds, you would observe the following output on diagnostic viewer indicating that flashing of firmware has started.
px4_diagnostic_viewer_success.png
If for some reason you do not see the above output on diagnostic viewer, even after reconnecting the Pixhawk board within 5 seconds, you can just reconnect the board once more to the computer and you can see that the firmware flash has started.
You can see the troubleshooting link:
  2 commentaires
Samuel Razumovskiy
Samuel Razumovskiy le 21 Juil 2021
I'm running into the same issue right now. But mine gets stuck after pressing OK and my diagnostic viewer doesn't show that kind of output. The image below is what I'm left looking at.
Samuel Razumovskiy
Samuel Razumovskiy le 21 Juil 2021
Just realized what the problem was, I was missing this selector.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by