Each processor (usually each subsystem) has a folder that contains its software. It may reference common drivers or components in the CISLibrary folder.
-
Install VSCode (able to do any IDE but this is recommended).
-
Install ClangFormat (Part of LLVM download, see pre-built binaries) Current version is LLVM 9.0.0 go to pre-built binary and click on the appropriate link based on your OS.
-
Install the following extensions (to download extension click on the extension tab on the middle left side):
- C/C++
- Clang-Format - follow instructions to setup clang-format executable location
- Doxygen Documentation Generator
- PlatformIO IDE
- Code Spell Checker
-
Copy
.githooks/pre-committo.git/hooks/pre-commitusingcp .githooks/pre-commit .git/hooks/pre-commitor manually via the following steps
- In file explorer click on view then check mark hidden files.
- Go into the
CougSat1-Software/.githooksfolder and copy the precommit file. - Go back and then click on the
.git/hooksfolder then paste the file in there.
-
Open the folder to the target processor. Save this as a workspace if you want, you can then add the library folder to see those files too. You can do this by clicking file/open folder. In file explorer make sure your are in Cougsat1-software then click on project you are working on. If you are modifying the CISLibrary, add this folder to the workspace as well.
-
PlatformIO automatically will detect the
platformio.inifile and begin initializing itself. If you do not have theST STM32embedded platform under PlatformIO home installed, during the first time you build PlatformIO will automatically download it. If there are include errors, restart VSCode (which has PlatformIO runRebuild IntelliSense Index) and those will disappear. -
Run the default build task to have PlatformIO start the Mbed compiler.
- Install VSCode (able to do any IDE but this is recommended).
- Install ClangFormat (Part of LLVM download, see pre-built binaries) Current version is LLVM 9.0.0 go to pre-built binary and click on the appropriate link based on your OS.
- Install Visual Studio Build Tools
- Select
Tools for Visual Studio 2019 - In the installer, select
C++ build tools - Add
msbuildtoPATH- Default location
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin
- Default location
- Select
- Install Visual C++ 2010 SP1
- Install the following extensions:
- C/C++
- Clang-Format - follow instructions to setup clang-format executable location
- Doxygen Documentation Generator
- Code Spell Checker
- Copy
.githooks/pre-committo.git/hooks/pre-commitusingcp .githooks/pre-commit .git/hooks/pre-commitor manually via the following steps
- In file explorer click on view then check mark hidden files.
- Go into the
CougSat1-Software/.githooksfolder and copy the precommit file. - Go back and then click on the
.git/hooksfolder then paste the file in there.
- Open the folder to the target processor. Save this as a workspace if you want, you can then add the library folder to see those files too. You can do this by clicking file/open folder. In file explorer make sure your are in Cougsat1-software then click on project you are working on. If you are modifying the CISLibrary, add this folder to the workspace as well.
- Open the folder to
CougSat1-Ground. Save this as a workspace if you want. If you are modifying the CISLibrary, add this folder to the workspace as well. - Initialize the submodules using
git submodule update --init --recursive - Run the
setupRTLSDRscript- This downloads the DLLs for the rtl-sdr library and opens Zadig for installing the driver for the RTL-SDR dongle
- When Zadig opens, insert the RTL-SDR dongle, select
Bulk-In, Interface (Interface 0), click install WinUSB driver
- Execute the default test task which will compile everything and launch the executable