Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
1,187 Views

Flashing PX4 Firmware on the Aero Compute Board

Hello,

I am working with a rtf drone and following this tutorial here: https://github.com/intel-aero/meta-intel-aero/wiki/02-Initial-setup 02 Initial Setup · intel-aero/meta-intel-aero Wiki · GitHub

I am connecting to the compute board using ssh from a laptop running Ubuntu 16.

All the steps before flashing the px4 firmware was successful, but upon flashing the px4 firmware I get this error:

==============================

root@intel-aero:/etc/px4-fw# aerofc-update.sh nuttx-aerofc-v1-default.px4

BIOS_VERSION = Aero-01.00.12_Prod

OS_VERSION = Poky Aero (Intel Aero Linux Distro) 1.4.0 (pyro)"

AIRMAP_VERSION = 1.8

FPGA_VERSION = 0xc0

/dev/ttyS1:

Updating firmware on AeroFC

Loaded firmware for 41,0, size: 928280 bytes, waiting for the bootloader...

If the board does not respond within 1-2 seconds, unplug and re-plug the USB connector.

Attempting reboot on /dev/ttyS1 with baudrate=1500000...

If the board does not respond, unplug and re-plug the USB connector.

Attempting reboot on /dev/ttyS1 with baudrate=460800...

If the board does not respond, unplug and re-plug the USB connector.

Attempting reboot on /dev/ttyS1 with baudrate=115200...

If the board does not respond, unplug and re-plug the USB connector.

==============================

I am unsure what it means to replug the usb connector since the board is getting power from the controller connected to a battery, disconnecting the uart only power off the board.

I have tried flashing recovery fpga and then flashing the px4 firmware again, but the same error persists. I also made sure the mavlink router was turned off.

Another question I had is if streaming the R200 camera through gstream requires the px4 firmware to be uploaded, since I wasn't able to get that working either.

Thank you and any help would be appreciated.

0 Kudos
3 Replies
Highlighted
41 Views

Hi Solias,

Thanks for reaching out to us.

I have tried with same versions and it is working here. Usually I saw this issue when there is problem with FPGA, Can you please update FPGA with same version again by following below steps,

$ cd /etc/fpga

$ jam -aprogram aero-rtf.jam

To make sure FPGA version is still 0xC0 please run below command,

$ aero-get-version.py

After this can you try updating FW,

$ cd /etc/px4-fw

$ aerofc-update.sh nuttx-aerofc-v1-default.px4

If you have any other question, don't hesitate to contact us.

Thanks,

Avinash

0 Kudos
Highlighted
Beginner
41 Views

Hi Avinash,

Thanks for the reply. The problem persists after uploading the fpga, the version is still 0xc0. Here is the output from uploading the fpga:

=====================================================

root@intel-aero:/etc/fpga# jam -aprogram aero-rtf.jam

Jam STAPL Player Version 2.5 (20040526)

Copyright (C) 1997-2004 Altera Corporation

Device # 1 IDCODE is 031820DD

full-chip erasing Max 10 FPGA device(s) ...

programming Max 10 FPGA CFM0 block at sector 4 ...

programming Max 10 FPGA CFM0 block at sector 5 ...

programming Max 10 FPGA UFM block at sector 1 ...

programming Max 10 FPGA UFM block at sector 2 ...

programming Max 10 FPGA UFM block at sector 3 ...

verifying Max 10 FPGA CFM0 block at sector 4 ...

verifying Max 10 FPGA CFM0 block at sector 5 ...

verifying Max 10 FPGA UFM block at sector 1 ...

verifying Max 10 FPGA UFM block at sector 2 ...

verifying Max 10 FPGA UFM block at sector 3 ...

programming Max 10 FPGA DSM block ...

DONE

Exit code = 0... Success

=====================================================

0 Kudos
Highlighted
Beginner
41 Views

I figured out the problem. I was actually working with 2 intel compute boards. My plan was to work with a separate board connected to a monitor, mouse and keyboard for uploading all my code, then replacing the board on the RTF drone. Upon replacing the board I realized I forgot to connect the flight controller, I thought the flight controller was in the case where the power button was instead of being attached to the board on the bottom. The firmware successfully updates now but I'd suggest updating this pdf to show the flight controller connection (since it still shows the port as reserved). https://software.intel.com/sites/default/files/managed/25/d5/Intel-Aero-Compute-Board-Getting-Starte... https://software.intel.com/sites/default/files/managed/25/d5/Intel-Aero-Compute-Board-Getting-Starte...

0 Kudos