ardupilot/Tools/AP_Periph
Andrew Tridgell 1352557ebb AP_Periph: use ArduPilot version system
this will allow build_binaries to find the version
2019-10-25 13:52:43 +11:00
..
AP_Periph.cpp AP_Periph: added application descriptor 2019-10-21 19:12:01 +11:00
AP_Periph.h AP_Periph: use ArduPilot version system 2019-10-25 13:52:43 +11:00
Parameters.cpp AP_Periph: support updating bootloader with FLASH_BOOTLOADER option 2019-10-24 22:03:43 +11:00
Parameters.h AP_Periph: support updating bootloader with FLASH_BOOTLOADER option 2019-10-24 22:03:43 +11:00
README.md Tools: updated AP_Periph CI and docs 2019-10-16 13:13:24 +11:00
adsb.cpp AP_Periph: support ADSB UAVCAN peripherals 2019-10-16 13:13:24 +11:00
can.cpp AP_Periph: use ArduPilot version system 2019-10-25 13:52:43 +11:00
i2c.h AP_Periph: added peripheral firmware 2019-08-27 10:29:56 +10:00
version.cpp AP_Periph: use ArduPilot version system 2019-10-25 13:52:43 +11:00
version.h AP_Periph: use ArduPilot version system 2019-10-25 13:52:43 +11:00
wscript Tools: fixed build with --out directory for build_binaries 2019-10-25 09:35:27 +11:00

README.md

CAN Peripheral Firmware

This is an ArduPilot based CAN peripheral firmware. Currently two targets are supported:

  • A STM32F103 128k flash part made by mRobotics (target f103-GPS)
  • A STM32F412 512k flash part made by CUAV (target CUAV_GPS)

Building

Using f103-GPS as an example, build the main firmware like this:

  • ./waf configure --board f103-GPS
  • ./waf AP_Periph

that will build a file build/f103-GPS/bin/AP_Periph.bin. You can now load that using the CAN bootloader and either uavcan_gui_tool or MissionPlanner.

Flashing

To load directly with a stlink-v2, do this:

  • st-flash write build/f103-GPS/bin/AP_Periph.bin 0x8006400

for the CUAV_GPS which loads at offset 0x10000 use this:

  • st-flash write build/CUAV_GPS/bin/AP_Periph.bin 0x8010000

Flashing bootloader

To flash the bootloader use this:

  • st-flash write Tools/bootloaders/f103-GPS_bl.bin 0x8000000

Building bootloader

To build the bootloader use this:

  • Tools/scripts/build_bootloader.py f103-GPS

the resulting bootloader will be in Tools/bootloaders