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

17 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

采纳的回答

Joshua O'Reilly
Joshua O'Reilly 2019-7-12
编辑:Joshua O'Reilly 2020-2-5
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

更多回答(0 个)

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by