Unable to complete PX4 support packages setup due to unresponsive firmware upload menu in Linux Ubuntu 22.04?

During Hardware setup for PX4 support packages, there is a compulsion intrduced to upload the firmware, but it became unresponsive and didn't stop or close unless I kill that terminal process manually. When I searched for the solution the help page only covers for Windows users, since I am on Ubutntu 22.04, I can't apply the solution, Kindly help me as soon as possible.

Answers (1)

Which hardware you are using? What happens when you remove and reconnect the hardware when the hardware setupscreen becomes unresponsive? Ensure that when you are removing and reconnecting the hardware over USB its getting reflected properly in the Ubuntu machine first. My guess is that the process to upload is waiting for the hardware to appear and that is not happening as expected.

5 Comments

I am using pixhawk 2.4.8 board. I can flash the controller firmware via QGC which is running in the Ubuntu environment itself. And I checked with the Ubuntu device manager it shows as follows :
when i reconnect the hardware it shows as follows for 3 seconds and reverts back to above mentioned status :
The firware uploading message is displayed forever in the hardware setup page and the board led status doesn't behave like when it is flashed via QGC (led off during entire flashing process), it is showing status for the normal operation of the board (blinking continuously).
I think the board didn't even enter the firmware update mode when setting up via Matlab Hardware setup page
Look LIke your baord might have different bootloader and communication serial ports. You might need to find these port names (/dev/ttyXYZ) and then we can specify it manually in setupscreens. This documentation will be helpful here.
You will have to do the same in Simulink as well if the firmware upload is stuck. Refer the 'Manually Set COM Port for Upload and Communication' in this documentation.
Thanks for the reply, but the documentaion you shared covers only for the windows device manager, I can't able to find which serial port is for bootloader in ubuntu
You can find the serial port by typing
ls /dev/tty*
on the console. Follow below steps
  1. Keep terminal ready.
  2. Connect your board. Immiditely switch to terminal and run ls /dev/tty*
  3. After a few mins, run the above command again on terminal.
Compare the two outputs. You should one serial port absent in second run. That is your bootloader port
Thank you for your reply, but I got fried that board already when tweaking with bootloader. Now I got a cubeorange which works with matlab flawlessly

Sign in to comment.

Products

Release

R2024a

Asked:

on 2 May 2024

Commented:

on 12 Jun 2024

Community Treasure Hunt

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

Start Hunting!