mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
Tools: updated AP_Periph CI and docs
target is now f103-GPS
This commit is contained in:
parent
b05429a487
commit
5cda8b4a4f
@ -3,17 +3,17 @@
|
||||
This is an ArduPilot based CAN peripheral firmware. Currently two
|
||||
targets are supported:
|
||||
|
||||
- A STM32F103 128k flash part made by mRobotics (target f103-periph)
|
||||
- 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-periph as an example, build the main firmware like this:
|
||||
Using f103-GPS as an example, build the main firmware like this:
|
||||
|
||||
- ./waf configure --board f103-periph
|
||||
- ./waf configure --board f103-GPS
|
||||
- ./waf AP_Periph
|
||||
|
||||
that will build a file build/f103-periph/bin/AP_Periph.bin. You can
|
||||
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.
|
||||
|
||||
@ -21,7 +21,7 @@ MissionPlanner.
|
||||
|
||||
To load directly with a stlink-v2, do this:
|
||||
|
||||
- st-flash write build/f103-periph/bin/AP_Periph.bin 0x8006400
|
||||
- st-flash write build/f103-GPS/bin/AP_Periph.bin 0x8006400
|
||||
|
||||
for the CUAV_GPS which loads at offset 0x10000 use this:
|
||||
|
||||
@ -31,13 +31,13 @@ for the CUAV_GPS which loads at offset 0x10000 use this:
|
||||
|
||||
To flash the bootloader use this:
|
||||
|
||||
- st-flash write Tools/bootloaders/f103-periph_bl.bin 0x8000000
|
||||
- st-flash write Tools/bootloaders/f103-GPS_bl.bin 0x8000000
|
||||
|
||||
# Building bootloader
|
||||
|
||||
To build the bootloader use this:
|
||||
|
||||
- Tools/scripts/build_bootloader.py f103-periph
|
||||
- Tools/scripts/build_bootloader.py f103-GPS
|
||||
|
||||
the resulting bootloader will be in Tools/bootloaders
|
||||
|
||||
|
@ -107,11 +107,11 @@ for t in $CI_BUILD_TARGET; do
|
||||
|
||||
if [ "$t" == "periph-build" ]; then
|
||||
echo "Building f103 bootloader"
|
||||
$waf configure --board f103-periph --bootloader
|
||||
$waf configure --board f103-GPS --bootloader
|
||||
$waf clean
|
||||
$waf bootloader
|
||||
echo "Building f103 peripheral fw"
|
||||
$waf configure --board f103-periph
|
||||
$waf configure --board f103-GPS
|
||||
$waf clean
|
||||
$waf AP_Periph
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user