smaccm / phase3

This is the repository for the phase 3 demo software and build support
3 stars 5 forks source link

[Help!] Cannot connect to the flight stack firmware by USB. #12

Open namasikanam opened 3 years ago

namasikanam commented 3 years ago

Hi, we are trying to reproduce this amazing project. But we strangely stuck after just uploading the firmware. We are students from Tsinghua formal verification group, not very familiar with embedded developing and pixhawk. We really need and appreciate any help!

What we have done

What we try to reproduce is the stand-alone flight without mission computer.

  1. Upload the provided factory USB bootloader firmware image of version 4 by JTAG/SWD debugger.
  2. Upload the APM firmware to the FMU.
  3. Insert a Micro SD card with the provided "px4io.bin" file in the root directory. The PX4IO firmware is upgraded and confirmed as this.
  4. Upload the firmware in the galoisinc/smaccmpilot-build docker image.

Description of strange phenomenon

BTW, do the meanings of the UI LED, which is controlled by the SMACCMPilot firmware, conform this PX4 User Guide?

Expected behavior

Context

Piaxhawk 2.4.8

namasikanam commented 3 years ago

Furthermore, we notice that the color of status LEDs are:

PWR B/E ACT
FMU solid green solid amber \
IO solid green solid amber flashing blue

The solid amber of FMU B/E indicates that the firmware of the FMU seems in error. What possible reasons for that?

namasikanam commented 2 years ago

I tried to listen to any logging output from Serial 5, which I assume to be the system console port. But there is nothing when booting.

However, when I booted another firmware, PX4 Flight Stack Stable Release, I can capture the output from Serial 5 (shown below).

output_of_PX4_firmware

Is Serial 5 not the system console port of the SMACCMPilot firmware? If it is, the SMACCMPilot firmware seems to go into the error state even before any logging. How could it happen?