User:NeoFromMatrix
Revision as of 13:44, 28 August 2015 by NeoFromMatrix (talk | contribs) (→Eclipse ChibiOS/RT J-Link)
Eclipse ChibiOS/RT J-Link
Dependencies:
- ARM_embedded_toolchain
- Java Runtime Enviroment (for Eclipse itself)
- SEGGERS Software and documentation pack (add it to your $PATH)
How to set up:
- Download Eclipse CDT (bit version must match Java RE version)
- Install Eclipse Plugins
- "C/C++ GDB Hardware Debugging" Plugin (required for e.g. Blackmagic Probe)
- "GNU ARM J-Link Debugging Support" Plugin (makes J-Link config very easy)
- Add "http://gnuarmeclipse.sourceforge.net/updates" as repository in Eclipse
- Optional Plugins
- "EmbSysRegView" from the Eclipse Marketplace
- "ChibiOS/RT Eclipse Tools" Plugin (add "http://www.chibios.org/eclipse/chibistudio/" as repository)
- SEGGER J-Link setup
- Run -> Debug Configurations... -> "New launch configuration" in the "GDB SEGGER J-Link Debugging" section
- Main tab
- Enter new name for the debug configuration
- Set the Project
- Set the C/C++ Application (*.elf file of the project)
- Debugger tab
- Set Device name (e.g. "STM32F103RE")
- Embedded Systems Register View setup
- Window -> Preferences -> C/C++ -> Debug -> EmbSys Register View
- Architecture (e.g. cortex-m3)
- Vendor (e.g. STMico)
- Chip (e.g. STM32F10X_HD)
- Coding style help Paparazzi Code Style
- Window -> Preferences -> General -> Editors -> Text editors
- Set "Displayed Tab width" to 2
- Enable "Show whitespace characters"
- Window -> Preferences -> C/C++ -> Code Style -> Formatter
- Create a new profile (K&R as template)
- Set Tab policy to Spaces only
- Set Indentation and Tab size to 2
- Window -> Preferences -> General -> Editors -> Text editors
Notes:
- Window -> Preferences -> -C/C++ -> Code Analysis, Unchecked "Field cannot be resolved" "Symbol is not resolved" since they produced useless errors
- These are also disabled in ChibiStudio.
- Make sure to use the matching debug config or the elf from another project will be loaded....
Airframes
Cheap Bird
Hardware
- Frame:Cheap Bird V1
- Motors: Hobbyking Donkey ST2204 1550 kV
- Props:
- ESC:
Electronics
- Autopilot: STM32F4 Discovery Daughterboard THT V1.0
- GPS: Hobbyking Ulox Neo-6M
- IMU: Drotek 10dof
- Modem: Laird RM024
Config:
- Airframe:
- Flight Plan:
- Settings:
- Radio:
- Telemetry: