- Open project by selecting the root
CMakeLists.txt
in your desired IDE. CLion will automatically run the configure step.
- Edit your targets by navigating to
Run > Edit Configurations...
. Remove unneeded targets by selecting multiple at a time:
- Add a new
OpenOCD
configuration:
-
Configure the desired target as shown:
- Note that this process will have to be repeated a few times for each robot target
- Ensure the desired robot is selected in your IDE:
-
Build and run using your IDE. Ensure board is connected before running.
Expected output is similar to the following:
...
** Programming Started **
Info : device id = 0x10006421
Info : flash size = 512 kbytes
** Programming Finished **
...
shutdown command invoked
- Install the following plugin to view serial output:
- Navigate to
Tools > Serial Port Monitor > Settings
and select the correct serial port and baud rate:
- Open the serial port monitor by navigating to
Tools > Serial Port Monitor > /dev/ttyACM0
and observe the output.- You may have to disable the "Hex View" option for cleaner output: