Firmware
The ARK X20 RTK GPS runs the PX4 DroneCAN firmware, so it supports firmware update over the CAN bus and dynamic node allocation.
Firmware target:
ark_x20-gps_defaultBootloader target:
ark_x20-gps_canbootloaderBoard ID:
89Board source: PX4-Autopilot
boards/ark/x20-gps
Updating from the Flight Controller
PX4 flashes DroneCAN nodes automatically at boot. This is the recommended method — it needs no hardware beyond the flight controller.
Download the firmware from Downloads, or build
ark_x20-gps_defaultyourself.Copy the
.uavcan.binfile to the root of the flight controller's SD card.Set UAVCAN_ENABLE to
2(or3) and power cycle the vehicle.Wait for the update to finish. The node's status LED flashes red, green and blue together during the update, then returns to fast blinking green.
On boot PX4 reads the board ID from the metadata block embedded in the binary, moves the file to /fs/microsd/ufw/89.bin, and deletes it from the SD card root. The file name does not matter — only the embedded metadata is used to match the file to the node.
Updating with the DroneCAN GUI Tool
Use this when the node is not connected to a PX4 flight controller, or when you want to flash a single node directly. You need:
A USB-to-CAN adapter that supports SLCAN, such as the Zubax Babel, connected to the same CAN bus. PX4 cannot expose its own CAN bus to the tool — see the ArduPilot - Flight Controller as CAN Interface section of the DroneCAN GUI Tool Guide for the ArduPilot alternative.
A dynamic node ID allocation server on the bus to assign the node an ID. Either a flight controller with
UAVCAN_ENABLEset to2or3, or the DroneCAN GUI Tool's own allocation server, started with the rocket icon in the tool's main window.
Upload the .uavcan.bin file to the node — see the DroneCAN GUI Tool Guide for connection and firmware upload steps.
Recovering over SWD
If the node does not appear on the CAN bus — for example after a bad flash that erased the bootloader — recover it over SWD with an ST-LINK. See Flashing DroneCAN Nodes.
Downloads
Node firmware 1.18 and later can rewrite its own CAN bootloader: set SYS_BL_UPDATE to 1 on the node. The flight controller logs bootloader updated, bootloader unchanged or bootloader update failed, and the parameter returns to 0.
Receiver Firmware
The X20P receiver's own firmware is updated separately with u-center 2 — see u-blox Firmware Update.
ArduPilot Firmware
AP_Periph, ArduPilot's node firmware, can replace the ARK firmware. ArduPilot is compatible with either. Its ARK_X20_GPS target (board ID 89) is in ArduPilot PR #33941, which is not merged, so the ArduPilot firmware server has no binaries for it.
Build AP_Periph from the PR branch:
Flash it using either method:
Over CAN — upload
AP_Periph.apjwith the DroneCAN GUI Tool, see our DroneCAN GUI Tool Guide. Then setFLASH_BOOTLOADERto1in the node's parameters so future updates use the AP_Periph bootloader.Over SWD — flash the combined
AP_Periph_with_bl.hexwith an ST-LINK on the 6-pin debug connector, see the ST-LINK Flashing Guide.
Node Parameters
These apply to the PX4 DroneCAN firmware. Set them on the GPS node, then reboot it. Use QGroundControl, where each CAN node is a separate Component X under Vehicle Settings > Parameters, or the DroneCAN GUI Tool.
CANNODE_TERM
0
Set to 1 on the last node of the CAN bus
CANNODE_NODE_ID
0
Fixed node ID (1–125). 0 uses dynamic node allocation
CANNODE_PUB_MAG
1
Publish magnetometer data
CANNODE_PUB_BAR
1
Publish barometer data
CANNODE_PUB_IMU
0
Publish RawIMU data. PX4 also needs UAVCAN_SUB_IMU set to 1
CANNODE_SUB_RTCM
1
Receive RTCM corrections from the flight controller
CANNODE_PUB_MBD
0
Publish MovingBaselineData. Set to 1 on a moving base
CANNODE_SUB_MBD
1
Receive MovingBaselineData from a moving base
GPS_UBX_MODE
0
0 default. Moving baseline over CAN: 3 rover, 4 moving base. Moving baseline over UART2: 1 rover, 2 moving base. 7 makes the UART2 connector a UBX diagnostic port for u-center, at the GPS_UBX_BAUD2 baudrate. 8 uses Galileo HAS from E6 (receiver firmware 2.10 or later) and ignores RTCM and SPARTN from the flight controller
GPS_UBX_BAUD1
921600
X20P UART1 baudrate
GPS_UBX_BAUD2
230400
X20P UART2 baudrate
GPS_UBX_RATE
0
Navigation rate in Hz, up to 25. 0 selects it automatically: 5 Hz in the moving baseline modes on node firmware 1.18 and later
SYS_BL_UPDATE
0
Set to 1 to rewrite the CAN bootloader from the running firmware
Constellations
GPS_1_GNSS is the sum of the constellations to use. The default, 47, enables all of them. The firmware does not configure GLONASS on the X20P, so 16 has no effect. 0 keeps the receiver's own configuration.
1
GPS and QZSS
2
SBAS
4
Galileo
8
BeiDou
32
NavIC
Release Notes
v1.18.0.2 - 73506671 - 2026-10-09
Moving baseline: an invalid heading goes out with a zero baseline, so ArduPilot ignores it instead of taking a NaN yaw that blocks arming (
PreArm: Internal errors 0x400)
v1.18.0.1 - 76e683ea - 2026-10-03
PX4 v1.18 base
The antenna mounting for moving baseline heading is set on the flight controller (
GPS_YAW_OFFSETremoved), see PX4 InstructionsMoving base and rover run at 5 Hz
Fix timestamps from the receiver's time pulse
A moving baseline rover uses only its moving base's corrections
Receiver UART1 at 921600 baud
Magnetometer scale corrected to the IIS2MDC datasheet
Bootloader update from the running firmware (
SYS_BL_UPDATE)
v1.16 - 47e04790 - 2025-11-17
Initial release
Last updated