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

조회 수: 31 (최근 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 2020년 2월 5일
Hi a a, I think I figured it out. Check out my accepted answer below
July
July 2020년 4월 8일
Have you solved this problem, a a?

댓글을 달려면 로그인하십시오.

채택된 답변

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