|
TR-mbed 1.0
|
| Table of Contents |
|---|
| Prerequisites |
| Setup |
| Flashing |
| Troubleshooting |
| Documentation |
We have setup guides for the major operating systems.
CMake project. This should only be done once per project, or after editing any CMakeLists.txt:Viable targets for build are: TR-Engineer, TR-Infantry, TR-Sentry, TR-Hero, and TR-TestBench
Makefile-OS to Makefile for it to work with the terminal.Note: If the makefile does not work with your system, contact an embed member or team lead for assistance since it might be an issue with the drive (your computer will not work with E drive, to which you have to change it to D in the makefile).
After completing all of this you can make and flash your code to the nucleo using make testbench-jlink, make hero-jlink, make infantry-jlink, and make sentry-jlink, or build with make infantry-build, make sentry-build, make hero-build, or make testbench-build. You should see a block with many numbers when the code is flashed. If you see a red text regarding "missing embed-tools" it is likely becuase you don't have the serial monitor downloaded which is not required to make and flash code.
Locate the generated executable:
eg. The built executable for TestBench will be present in cmake-build-debug/robots/TestBench/TR-TestBench.elf
For flashing device in WSL, see the WSL guide.
we HIGHLY recommend using clangd instead of the microsoft C++ vscode extension
clangd (LLVM) vscode extension (you may be prompted to install clangd if you don't have it installed on your system).vscode/settings.json.example to .vscode/settings.json and adjust the relevant pathsif you randomly have unexpected issues with intellisense you can try running cmake -S . -B cmake-build-debug -GNinja to reconfigure the project, generating compile_commands.json again which clangd relies on.
Add the following to your user settings.json (ctrl + shift + p and select Preferences: Open User Settings (JSON))
optionally also add the following to save on format
See the Troubleshooting guide for common issues and solutions.
See the Debugging guide on how to run the debugger using STM32CubeIDE
See the Ozone Debugger guide on how to run the debugger using the Ozone Debugger.
See our generated doxygen.