night-ghost
7 years ago
committed by
Andrew Tridgell
114 changed files with 206 additions and 360 deletions
@ -1,3 +1,27 @@
@@ -1,3 +1,27 @@
|
||||
this is universal HAL for almost any F4 board, without any external OS |
||||
|
||||
per-board Readme files are in boards/{board}/1_Readme.md |
||||
|
||||
|
||||
Warning!!! |
||||
EEPROM emulation in Flash cause periodic program hunging on time of sector erase! So to allow auto-save parameters |
||||
like MOT_THST_HOVER - MOT_HOVER_LEARN to be 2 you should defer parameter writing (Param BRD_EE_DEFER) |
||||
|
||||
|
||||
|
||||
Timer usage: |
||||
|
||||
1 RC-Output on some boards |
||||
2 RC-Output |
||||
3 RC-Output |
||||
4 soft_i2c0, PPM_IN on AirbotV2 |
||||
5 micros() |
||||
6 event generation for WFE |
||||
7 scheduler |
||||
8 PPM_IN |
||||
9 soft_i2c1 |
||||
10 soft_i2c2 |
||||
11 |
||||
12 PPM_IN |
||||
13 driver's io_completion |
||||
14 schedule tail timer |
||||
|
@ -1 +0,0 @@
@@ -1 +0,0 @@
|
||||
boards/revomini_Revolution/1_read_ME.md |
@ -0,0 +1,27 @@
@@ -0,0 +1,27 @@
|
||||
#git submodule init && git submodule update |
||||
export TOOLCHAIN |
||||
|
||||
ROOT=`cd ../../../../..; pwd` |
||||
|
||||
export PATH=/usr/local/bin:$PATH |
||||
|
||||
echo $ROOT |
||||
|
||||
|
||||
( # AirBotF4 board |
||||
cd $ROOT/ArduPlane |
||||
make f4light-clean |
||||
make f4light BOARD=f4light_Airbot && |
||||
cp $ROOT/ArduPlane/f4light_Airbot.bin $ROOT/Release/Plane && |
||||
cp $ROOT/ArduPlane/f4light_Airbot.hex $ROOT/Release/Plane && |
||||
cp $ROOT/ArduPlane/f4light_Airbot.dfu $ROOT/Release/Plane |
||||
) && ( |
||||
cd $ROOT/ArduCopter |
||||
make f4light-clean |
||||
make f4light BOARD=f4light_Airbot && |
||||
|
||||
cp $ROOT/ArduCopter/f4light_Airbot.bin $ROOT/Release/Copter && |
||||
cp $ROOT/ArduCopter/f4light_Airbot.hex $ROOT/Release/Copter && |
||||
cp $ROOT/ArduCopter/f4light_Airbot.dfu $ROOT/Release/Copter |
||||
) |
||||
|
@ -1,9 +1,9 @@
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh |
||||
|
||||
#production binary for bootloader |
||||
#dfu-util -a 0 --dfuse-address 0x08010000 -D /tmp/ArduCopter.build/revomini_Revolution.bin |
||||
#dfu-util -a 0 --dfuse-address 0x08010000 -D /tmp/ArduCopter.build/f4light_Revolution.bin |
||||
|
||||
# bare metal binary |
||||
#dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D ../../../../../ArduCopter/revomini_Airbot.bin |
||||
dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D ../../../../../ArduCopter/revomini_Airbot.bin |
||||
#dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D ../../../../../ArduCopter/f4light_Airbot.bin |
||||
dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D ../../../../../ArduCopter/f4light_Airbot.bin |
||||
|
@ -1,9 +1,9 @@
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh |
||||
|
||||
# production binary with bootloader |
||||
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/revomini_Revolution.bin 0x08010000 |
||||
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/f4light_Revolution.bin 0x08010000 |
||||
|
||||
#bare metal binary |
||||
/usr/local/stlink/st-flash --reset write ../../../../../ArduCopter/revo_cl_racing.bin 0x08000000 && /usr/local/stlink/st-util -m |
||||
/usr/local/stlink/st-flash --reset write ../../../../../ArduCopter/f4light_Airbot.bin 0x08000000 && /usr/local/stlink/st-util -m |
||||
|
||||
|
@ -1,9 +1,9 @@
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh |
||||
|
||||
# production binary with bootloader |
||||
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/revomini_Revolution.bin 0x08010000 |
||||
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/f4light_Revolution.bin 0x08010000 |
||||
|
||||
#bare metal binary |
||||
/usr/local/stlink/st-flash --reset write ../../../../../ArduPlane/revo_cl_racing.bin 0x08000000 && /usr/local/stlink/st-util -m |
||||
/usr/local/stlink/st-flash --reset write ../../../../../ArduPlane/f4light_Airbot.bin 0x08000000 && /usr/local/stlink/st-util -m |
||||
|
||||
|
@ -1,7 +1,7 @@
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh |
||||
|
||||
# production binary with bootloader |
||||
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/revomini_Revolution.bin 0x08010000 |
||||
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/f4light_Revolution.bin 0x08010000 |
||||
|
||||
#bare metal binary |
||||
/usr/local/stlink/st-flash --reset read readout.bin 0x08000000 0x100000 |
@ -1,12 +1,12 @@
@@ -1,12 +1,12 @@
|
||||
#!/bin/sh |
||||
|
||||
#production binary for bootloader |
||||
#dfu-util -a 0 --dfuse-address 0x08010000 -D /tmp/ArduCopter.build/revomini_AirbotV2.bin |
||||
#dfu-util -a 0 --dfuse-address 0x08010000 -D /tmp/ArduCopter.build/f4light_AirbotV2.bin |
||||
|
||||
# bare metal binary |
||||
|
||||
#dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D /tmp/ArduCopter.build/revomini_Revolution.bin |
||||
#dfu-util -a 0 --dfuse-address 0x08000000:leave -D ../../../../../ArduCopter/revomini_Revolution.bin -R |
||||
#dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D /tmp/ArduCopter.build/f4light_Revolution.bin |
||||
#dfu-util -a 0 --dfuse-address 0x08000000:leave -D ../../../../../ArduCopter/f4light_Revolution.bin -R |
||||
|
||||
dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D ../../../../../ArduCopter/revo_cl_racing.bin -R |
||||
dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D ../../../../../ArduCopter/f4light_AirbotV2.bin -R |
||||
|
@ -1,9 +1,9 @@
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh |
||||
|
||||
# production binary with bootloader |
||||
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/revomini_Revolution.bin 0x08010000 |
||||
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/f4light_Revolution.bin 0x08010000 |
||||
|
||||
#bare metal binary |
||||
/usr/local/stlink/st-flash --reset write ../../../../../ArduCopter/MiniF4_OSD.bin 0x08000000 && /usr/local/stlink/st-util -m |
||||
/usr/local/stlink/st-flash --reset write ../../../../../ArduCopter/f4light_AirbotV2.bin 0x08000000 && /usr/local/stlink/st-util -m |
||||
|
||||
|
@ -1,9 +1,9 @@
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh |
||||
|
||||
# production binary with bootloader |
||||
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/revomini_Revolution.bin 0x08010000 |
||||
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/f4light_Revolution.bin 0x08010000 |
||||
|
||||
#bare metal binary |
||||
/usr/local/stlink/st-flash --reset write ../../../../../ArduPlane/revomini_Airbot.bin 0x08000000 && /usr/local/stlink/st-util -m |
||||
/usr/local/stlink/st-flash --reset write ../../../../../ArduPlane/f4light_AirbotV2.bin 0x08000000 && /usr/local/stlink/st-util -m |
||||
|
||||
|
@ -1,12 +1,12 @@
@@ -1,12 +1,12 @@
|
||||
#!/bin/sh |
||||
|
||||
#production binary for bootloader |
||||
#dfu-util -a 0 --dfuse-address 0x08010000 -D /tmp/ArduCopter.build/revomini_AirbotV2.bin |
||||
#dfu-util -a 0 --dfuse-address 0x08010000 -D /tmp/ArduCopter.build/f4light_AirbotV2.bin |
||||
|
||||
# bare metal binary |
||||
|
||||
#dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D /tmp/ArduCopter.build/revomini_Revolution.bin |
||||
#dfu-util -a 0 --dfuse-address 0x08000000:leave -D ../../../../../ArduCopter/revomini_Revolution.bin -R |
||||
#dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D /tmp/ArduCopter.build/f4light_Revolution.bin |
||||
#dfu-util -a 0 --dfuse-address 0x08000000:leave -D ../../../../../ArduCopter/f4light_Revolution.bin -R |
||||
|
||||
dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D ../../../../../ArduCopter/revomini_AirbotV2.bin -R |
||||
dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D ../../../../../ArduCopter/f4light_AirbotV2.bin -R |
||||
|
@ -1,9 +1,9 @@
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh |
||||
|
||||
# production binary with bootloader |
||||
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/revomini_Revolution.bin 0x08010000 |
||||
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/f4light_Revolution.bin 0x08010000 |
||||
|
||||
#bare metal binary |
||||
/usr/local/stlink/st-flash --reset write ../../../../../ArduCopter/revomini_Airbot.bin 0x08000000 && /usr/local/stlink/st-util -m |
||||
/usr/local/stlink/st-flash --reset write ../../../../../ArduCopter/f4light_AirbotV2.bin 0x08000000 && /usr/local/stlink/st-util -m |
||||
|
||||
|
@ -1,9 +1,9 @@
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh |
||||
|
||||
# production binary with bootloader |
||||
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/revomini_Revolution.bin 0x08010000 |
||||
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/f4light_Revolution.bin 0x08010000 |
||||
|
||||
#bare metal binary |
||||
/usr/local/stlink/st-flash --reset write ../../../../../ArduPlane/revomini_AirbotV2.bin 0x08000000 && /usr/local/stlink/st-util -m |
||||
/usr/local/stlink/st-flash --reset write ../../../../../ArduPlane/f4light_AirbotV2.bin 0x08000000 && /usr/local/stlink/st-util -m |
||||
|
||||
|
@ -1,8 +1,8 @@
@@ -1,8 +1,8 @@
|
||||
#!/bin/sh |
||||
|
||||
#production binary for bootloader |
||||
#dfu-util -a 0 --dfuse-address 0x08010000 -D /tmp/ArduCopter.build/revomini_AirbotV2.bin |
||||
#dfu-util -a 0 --dfuse-address 0x08010000 -D /tmp/ArduCopter.build/f4light_AirbotV2.bin |
||||
|
||||
# bare metal binary |
||||
dfu-util -a 0 --dfuse-address 0x08000000 -D ../../../../../ArduCopter/MiniF4_OSD.bin |
||||
dfu-util -a 0 --dfuse-address 0x08000000 -D ../../../../../ArduCopter/f4light_MiniF4_OSD.bin |
||||
|
@ -1,9 +1,9 @@
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh |
||||
|
||||
# production binary with bootloader |
||||
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/revomini_Revolution.bin 0x08010000 |
||||
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/f4light_Revolution.bin 0x08010000 |
||||
|
||||
#bare metal binary |
||||
/usr/local/stlink/st-flash --reset write ../../../../../ArduCopter/revomini_AirbotV2.bin 0x08000000 && /usr/local/stlink/st-util -m |
||||
/usr/local/stlink/st-flash --reset write ../../../../../ArduCopter/f4light_MiniF4_OSD.bin 0x08000000 && /usr/local/stlink/st-util -m |
||||
|
||||
|
@ -1,9 +1,9 @@
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh |
||||
|
||||
#production binary for bootloader |
||||
#dfu-util -a 0 --dfuse-address 0x08010000 -D /tmp/ArduCopter.build/revomini_Revolution.bin |
||||
#dfu-util -a 0 --dfuse-address 0x08010000 -D /tmp/ArduCopter.build/f4light_Revolution.bin |
||||
|
||||
# bare metal binary |
||||
#dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D /tmp/ArduCopter.build/revomini_Revolution.bin |
||||
dfu-util -a 0 --dfuse-address 0x08000000:leave -D ../../../../../ArduPlane/revomini_Revolution.bin -R |
||||
#dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D /tmp/ArduCopter.build/f4light_Revolution.bin |
||||
dfu-util -a 0 --dfuse-address 0x08000000:leave -D ../../../../../ArduPlane/f4light_Revolution.bin -R |
||||
|
@ -1,9 +1,9 @@
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh |
||||
|
||||
#production binary for bootloader |
||||
#dfu-util -a 0 --dfuse-address 0x08010000 -D /tmp/ArduCopter.build/revomini_Revolution.bin |
||||
#dfu-util -a 0 --dfuse-address 0x08010000 -D /tmp/ArduCopter.build/f4light_Revolution.bin |
||||
|
||||
# bare metal binary |
||||
#dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D /tmp/ArduCopter.build/revomini_Revolution.bin |
||||
dfu-util -a 0 --dfuse-address 0x08000000:leave -D ../../../../../ArduCopter/revomini_Revolution.bin -R |
||||
#dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D /tmp/ArduCopter.build/f4light_Revolution.bin |
||||
dfu-util -a 0 --dfuse-address 0x08000000:leave -D ../../../../../ArduCopter/f4light_Revolution.bin -R |
||||
|
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh |
||||
|
||||
# production binary with bootloader |
||||
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/f4light_Revolution.bin 0x08010000 |
||||
|
||||
#bare metal binary |
||||
/usr/local/stlink/st-flash --reset write ../../../../../ArduCopter/f4light_Revolution.bin 0x08000000 && /usr/local/stlink/st-util -m |
||||
|
||||
|
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh |
||||
|
||||
# production binary with bootloader |
||||
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/f4light_Revolution.bin 0x08010000 |
||||
|
||||
#bare metal binary |
||||
/usr/local/stlink/st-flash --reset write ../../../../../ArduPlane/f4light_Revolution.bin 0x08000000 && /usr/local/stlink/st-util -m |
||||
|
||||
|
@ -1,12 +1,12 @@
@@ -1,12 +1,12 @@
|
||||
#!/bin/sh |
||||
|
||||
#production binary for bootloader |
||||
#dfu-util -a 0 --dfuse-address 0x08010000 -D /tmp/ArduCopter.build/revomini_AirbotV2.bin |
||||
#dfu-util -a 0 --dfuse-address 0x08010000 -D /tmp/ArduCopter.build/f4light_AirbotV2.bin |
||||
|
||||
# bare metal binary |
||||
|
||||
#dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D /tmp/ArduCopter.build/revomini_Revolution.bin |
||||
#dfu-util -a 0 --dfuse-address 0x08000000:leave -D ../../../../../ArduCopter/revomini_Revolution.bin -R |
||||
#dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D /tmp/ArduCopter.build/f4light_Revolution.bin |
||||
#dfu-util -a 0 --dfuse-address 0x08000000:leave -D ../../../../../ArduCopter/f4light_Revolution.bin -R |
||||
|
||||
dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D ../../../../../ArduCopter/revomini_AirbotV2.bin -R |
||||
dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D ../../../../../ArduCopter/f4light_cl_racing.bin -R |
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue