Borrar filtros
Borrar filtros

problem with building PX4 code using simulink

6 visualizaciones (últimos 30 días)
Jakub Lesko
Jakub Lesko el 15 de En. de 2020
Comentada: John conner el 28 de Feb. de 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 comentario
John conner
John conner el 28 de Feb. de 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.

Iniciar sesión para comentar.

Respuestas (1)

Chidvi Modala
Chidvi Modala el 30 de En. de 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 comentarios
Samuel Razumovskiy
Samuel Razumovskiy el 21 de Jul. de 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 el 21 de Jul. de 2021
Just realized what the problem was, I was missing this selector.

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by