- CatPilot >
- JetBrains Clion IDE setup
JetBrains Clion IDE setup¶
Building configuration¶
1. Create cmake profile (Settings -> Build, Execution, Deployment -> CMake) with a following parameters in CMake options filed (adjust necessary options, refer to Build and debug reference)
-DBOARD=cube -DCLI_PORT=DBG -DCLI_BAUDRATE=115200 -DOS_MONITOR=ON -DCMAKE_BUILD_TYPE=Debug
Select
uas-catpilot
target.Make sure it builds.
Debug configuration¶
Go to Edit Run/Debug configuration.
Add OpenOCD Download and Run target, select
uas-catpilot.elf
as target and executable binary.
3. Add path to config in a field Board Config File: catpilot/bsp/mcu/core/stm32/h753/stm32h753.cfg
. Path to config
must be absolute, but taken from catpilot project
4. Optionally you may add make atomics xmlinline
to the Before launch section in order to automatically keep
build up to date with all non-code changes.