forked from PX4/PX4-Autopilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
295 changed files
with
20,777 additions
and
6,623 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# copy the file to .gdbinit in your Firmware tree, and adjust the path | ||
# below to match your system | ||
# For example: | ||
# target extended /dev/serial/by-id/usb-Black_Sphere_Technologies_Black_Magic_Probe_DDE5A1C4-if00 | ||
# target extended /dev/ttyACM4 | ||
|
||
|
||
monitor swdp_scan | ||
attach 1 | ||
monitor vector_catch disable hard | ||
set mem inaccessible-by-default off | ||
set print pretty | ||
source Debug/PX4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# program a bootable device load on a mavstation | ||
# To run type openocd -f mavprogram.cfg | ||
|
||
source [find interface/olimex-arm-usb-ocd-h.cfg] | ||
source [find px4fmu-v1-board.cfg] | ||
|
||
init | ||
halt | ||
|
||
# Find the flash inside this CPU | ||
flash probe 0 | ||
|
||
# erase it (128 pages) then program and exit | ||
|
||
#flash erase_sector 0 0 127 | ||
# stm32f1x mass_erase 0 | ||
|
||
# It seems that Pat's image has a start address offset of 0x1000 but the vectors need to be at zero, so fixbin.sh moves things around | ||
#flash write_bank 0 fixed.bin 0 | ||
#flash write_image firmware.elf | ||
#shutdown | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
target remote :3333 | ||
|
||
# Don't let GDB get confused while stepping | ||
define hook-step | ||
mon cortex_m maskisr on | ||
end | ||
define hookpost-step | ||
mon cortex_m maskisr off | ||
end | ||
|
||
mon init | ||
mon stm32_init | ||
# mon reset halt | ||
mon poll | ||
mon cortex_m maskisr auto | ||
set mem inaccessible-by-default off | ||
set print pretty | ||
source Debug/PX4 | ||
|
||
echo PX4 resumed, press ctrl-c to interrupt\n | ||
continue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# The latest defaults in OpenOCD 0.7.0 are actually prettymuch correct for the px4fmu | ||
|
||
# increase working area to 32KB for faster flash programming | ||
set WORKAREASIZE 0x8000 | ||
|
||
source [find target/stm32f4x.cfg] | ||
|
||
# needed for px4 | ||
reset_config trst_only | ||
|
||
proc stm32_reset {} { | ||
reset halt | ||
# FIXME - needed to init periphs on reset | ||
# 0x40023800 RCC base | ||
# 0x24 RCC_APB2 0x75933 | ||
# RCC_APB2 0 | ||
} | ||
|
||
# perform init that is required on each connection to the target | ||
proc stm32_init {} { | ||
|
||
# force jtag to not shutdown during sleep | ||
#uint32_t cr = getreg32(STM32_DBGMCU_CR); | ||
#cr |= DBGMCU_CR_STANDBY | DBGMCU_CR_STOP | DBGMCU_CR_SLEEP; | ||
#putreg32(cr, STM32_DBGMCU_CR); | ||
mww 0xe0042004 00000007 | ||
} | ||
|
||
# if srst is not fitted use SYSRESETREQ to | ||
# perform a soft reset | ||
cortex_m reset_config sysresetreq | ||
|
||
# Let GDB directly program elf binaries | ||
gdb_memory_map enable | ||
|
||
# doesn't work yet | ||
gdb_flash_program disable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
openocd -f interface/olimex-arm-usb-ocd-h.cfg -f $DIR/px4fmu-v1-board.cfg |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"board_id": 9, | ||
"magic": "PX4FWv1", | ||
"description": "Firmware for the PX4FMUv2 board", | ||
"image": "", | ||
"build_time": 0, | ||
"summary": "PX4FMUv2", | ||
"version": "0.1", | ||
"image_size": 0, | ||
"git_identity": "", | ||
"board_revision": 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"board_id": 10, | ||
"magic": "PX4FWv2", | ||
"description": "Firmware for the PX4IOv2 board", | ||
"image": "", | ||
"build_time": 0, | ||
"summary": "PX4IOv2", | ||
"version": "2.0", | ||
"image_size": 0, | ||
"git_identity": "", | ||
"board_revision": 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"board_id": 10, | ||
"magic": "PX4FWv2", | ||
"description": "Firmware for the PX4IOv2 board", | ||
"image": "", | ||
"build_time": 0, | ||
"summary": "PX4IOv2", | ||
"version": "2.0", | ||
"image_size": 0, | ||
"git_identity": "", | ||
"board_revision": 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.