Navigation

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

  1. Select uas-catpilot target.

  2. Make sure it builds.

Debug configuration

  1. Go to Edit Run/Debug configuration.

  2. 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.