Add an NSH command to format a device with littlefs, analogous to mkfatfs for FAT filesystems. The command unmounts the mount point, then remounts with forceformat to format and mount in one step. Enable the command on boards that use littlefs as primary storage (airbrainh743 and kakuteh7v2), and document it in the airbrainh743 flight controller page as a recovery procedure for a corrupted flash filesystem. Usage: mklittlefs /dev/mtd0 /fs/flash
3.2 KiB
Gear Up AirBrainH743
::: warning PX4 does not manufacture this (or any) autopilot. Contact the manufacturer for hardware support. :::
::: info This flight controller is manufacturer supported. :::
Purchase from takeyourgear.com.
For more information and pinout, check the GitHub documentation.
Key Features
- MCU: STM32H743 32-bit processor running at 480 MHz
- IMU: ICM42688P
- Barometer: DPS310
- Magnetometer: LIS2MDL (internal)
- 128MB NAND Flash for logging (W25N)
- 7x UARTs
- I2C, SPI
- 9x PWM Outputs (8 Motor outputs, 1 LED strip)
- Battery input voltage: 3S-10S
- Battery voltage/current monitoring
- 5V@2A and 10V@2.5A BEC outputs
- USB Type-C (IP68)
- EMC and ESD protection
Connectors and Pins
::: warning The pin order is different from the Pixhawk standard (compatible to the Betaflight standard). :::
UARTs
Current UART configuration:
| UART | Device | Function |
|---|---|---|
| USART1 | /dev/ttyS0 | Console/Debug |
| USART2 | /dev/ttyS1 | RC Input |
| USART3 | /dev/ttyS2 | TEL4 (DJI/MSP) |
| UART4 | /dev/ttyS3 | TEL1 |
| UART5 | /dev/ttyS4 | TEL2 |
| UART7 | /dev/ttyS5 | TEL3 (ESC Telemetry) |
| UART8 | /dev/ttyS6 | GPS1 |
Motor/Servo Outputs
| Connector | Pin | Function |
|---|---|---|
| ESC | M1 | Motor 1 |
| ESC | M2 | Motor 2 |
| ESC | M3 | Motor 3 |
| ESC | M4 | Motor 4 |
| PWM | M5 | Motor 5 |
| PWM | M6 | Motor 6 |
| PWM | M7 | Motor 7 |
| PWM | M8 | Motor 8 |
| AUX | M9 | LED/PWM/etc. |
PX4 Bootloader Update
Before PX4 firmware can be installed, the PX4 bootloader must be flashed. Download the gearup_airbrainh743_bootloader.bin bootloader binary and read this page for flashing instructions.
Building Firmware
To build PX4 for this target:
make gearup_airbrainh743_default
Installing PX4 Firmware
Firmware can be installed in any of the normal ways:
-
Build and upload the source:
make gearup_airbrainh743_default upload -
Load the firmware using QGroundControl. You can use either pre-built firmware or your own custom firmware.
Flash Storage Troubleshooting
The AirBrainH743 uses a 128MB NAND flash (W25N) with a littlefs filesystem for logging. If the flash filesystem becomes corrupted, you can reformat it using the System Console:
mklittlefs /dev/mtd0 /fs/flash
This will erase all data on the flash and create a fresh littlefs filesystem. The filesystem is immediately available after the command completes.
System Console
UART1 (ttyS0) is configured for use as the System Console.