mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Updating hardware debugging development docs.
This commit is contained in:
parent
85b78ec2c0
commit
fe913480ab
8 changed files with 77 additions and 52 deletions
|
@ -1,62 +1,14 @@
|
|||
# Hardware
|
||||
# Hardware Debugging In Eclipse
|
||||
|
||||
Various debugging hardware solutions exist, the Segger J-Link clones are cheap and are known to work on Windows with both the Naze and Olimexino platforms.
|
||||
Build a binary with debugging information using command line or via Eclipse make target.
|
||||
|
||||
USB-MiniJTAG J-Link JTAG/SWD Debugger/Emulator
|
||||
|
||||
http://www.hotmcu.com/usbminijtag-jlink-jtagswd-debuggeremula%E2%80%8Btor-p-29.html?cPath=3_25&zenid=fdefvpnod186umrhsek225dc10
|
||||
|
||||

|
||||
|
||||
ARM-JTAG-20-10 adapter
|
||||
|
||||
https://www.olimex.com/Products/ARM/JTAG/ARM-JTAG-20-10/
|
||||
http://uk.farnell.com/jsp/search/productdetail.jsp?sku=2144328
|
||||
|
||||

|
||||
|
||||
The Segger J-Link server can be obtained from here
|
||||
|
||||
http://www.segger.com/jlink-software.html
|
||||
|
||||
# Build with DEBUG=GDB
|
||||
|
||||
## Naze target (default)
|
||||
|
||||
### via Command line
|
||||
|
||||
```
|
||||
make clean TARGET=NAZE
|
||||
make TARGET=NAZE DEBUG=GDB
|
||||
```
|
||||
|
||||
### via Eclipse make target
|
||||
|
||||

|
||||
|
||||
|
||||
### via configuration
|
||||
use this method if you want to build automatically when launching the debug configuration
|
||||
|
||||

|
||||
|
||||
## Olimexino target
|
||||
|
||||
### via command line
|
||||
```
|
||||
make clean TARGET=OLIMEXINO
|
||||
make TARGET=OLIMEXINO DEBUG=GDB
|
||||
```
|
||||
|
||||
### via Eclipse make target
|
||||
Example Eclipse make target
|
||||
|
||||

|
||||
|
||||
# GDB and OpenOCD
|
||||
|
||||
start openocd:
|
||||
|
||||
openocd -f /usr/share/openocd/scripts/board/stm32vldiscovery.cfg
|
||||
start openocd
|
||||
|
||||
Create a new debug configuration in eclipse :
|
||||

|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue