problem with building PX4 code using simulink

7 ビュー (過去 30 日間)
Jakub Lesko
Jakub Lesko 2020 年 1 月 15 日
コメント済み: John conner 2024 年 2 月 28 日 4:45
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 件のコメント
John conner
John conner 2024 年 2 月 28 日 4:45
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.

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

回答 (1 件)

Chidvi Modala
Chidvi Modala 2020 年 1 月 30 日
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 件のコメント
Samuel Razumovskiy
Samuel Razumovskiy 2021 年 7 月 21 日
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 2021 年 7 月 21 日
Just realized what the problem was, I was missing this selector.

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

Community Treasure Hunt

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

Start Hunting!

Translated by