SOLVED: Unable to Upload Firmware to Pixhawk; Firmware image not found

EDIT: SOLVED
See the bottom comment for the solution
---
I've been following the setup steps for the PX4 Autopilots Support from Embedded Coder package. I was able to succesfully build the firmware (nuttx_px4fmu-v2_default.cmake), however when trying to upload it to the actual board, I get the following error:
Firmware upload failed: Firmware image not found. Please build the firmware again.
I've rebuilt the firmware a dozen or so times now, including the lpe variant, and I always get this error. The COM port is properly identified, and I used the appropriate version for everything (Ubuntu 16.04 WSL, PX4 v1.8.0, MATLAB R2018b along with all required packages). In the command prompt it indicates
BUILDSTARTING_31-May-2019_10-08-01
CMAKE Config selected : px4fmu-v2_default
After building the firmware. Any clue why this is happening/how to resolve it?
I'm running MATLAB on Windows 10 1803, using a Pixhawk board (condensed version of Pixhawk 1)

6 Kommentare

I reinstalled Ubuntu 16.04 LTS WSL, re-cloned the PX4 firmware, reinstalled the latest firmware to the Pixfalcon, and followed all the steps very thoroughly, paying a great amount of attention to the "What to Consider" in the sidebar. I still cannot proceed past the "Firmware upload failed: Firmware image not found. Please build the firmware again" error.
I purchased a Pixhawk 4 and tried this again, but using the px4fmu-v5_default firmware and again, "Firmware upload failed: Firmware image not found. Please build the firmware again"
Got it to work!
It turns out that, during the firmware build process, it wasn't actually building the firmware at all. I'm not sure why but the solution was literally just:
Uninstall Ubuntu 16.04 WSL and reinstall it
After that, I was able to build and upload the firmware successfully
hi !
i have a same problem...
i did uninstall ubuntu 16.04 wsl and reinstall it, but did not resolve this problem.
how can i resolve this problem?!
Hi a a, I think I figured it out. Check out my accepted answer below
Have you solved this problem, a a?

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Joshua O'Reilly
Joshua O'Reilly am 12 Jul. 2019
Bearbeitet: Joshua O'Reilly am 5 Feb. 2020

0 Stimmen

Copying my comment down here:
Got it to work!
It turns out that, if the firmware build fails, it won't tell you why. I ran the build command from here:
make px4_fmu-v5_default
(for the Pixhawk 4, seperate commands can be found for other models)
After running the make command, I was told exactly what library was missing (don't remember which anymore), and I installed that library directly from the command line (for ubuntu, sudo apt install libraryname). I was then able to build and upload the firmware successfully through MATLAB

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by