I want to install this library to use in my project:
The documentation tells me:
So, what is CLI?
CLI is command line interface.
Let's try it.
1. Open PowerShell
2. Navigate to your project file location. Not the one with say, “sln” but the inner one with the .*proj file (eg *.csproj)
Navigation in Powershell:
use “dir” to list the contents of the directory
use “cd ” to navigate into a directory
use tab to autocomplete a directory name, or cycle through directory names.
3. Type or Paste the .NET CLI installer command and press enter:
4. This project does not support command prompt add package.
3. I recommend that you have a folder on your PC to act as a local repo for anything you push up to Git - but the IDE also requires a Workspace. I find the local repo doubles for that workspace, and I can create multiple workspaces in/out/around that folder.
Choose that for your workspace.
4. New STM32 Project:
Select the board/MCU you are using to acquire the necessary (desirable) initialization code and drivers for your selected hardware.
5. Next will take some time to generate those files.
6. Project configuration: Name it.
Selecting SMT32Cube will bring you to the graphical pin-configuration tool. It also means that you are restricted as to where you can place your code so it doesn't get overwritten by the CUBE tool.
5. Finish will generate a code base.
6. Build the project to ensure it compiles and setup is valid
Does the console throw any warnings?
Did you get an "FPU" warning?
Set the Floating-point unit settings to "None"
7. Try the code out on your board.
8a. Create a debug profile
Some MCUs support Serial Wire Viewer (SWV), and some don't. Namely, the 4 M0s do not. If your MCU/Board/Debugger does, you should enable the SWV here. If yours doesn't, you will have to use openOCD and SemiHosting to see 'printf' statements.
8b. In the debugger settings, select "OpenOCD"
Go to Startup, and in the 'Run Commands" type:
Apply and close.
Right click on the project ->Properties
In your code, make sure you include
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters