You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The application prints time elapsed since boot in interval of 5 seconds. Configure serial onitor on host for 9600 baudrate to be able to read and write to blue pill using uart.
97
+
The application prints time elapsed since boot in interval of 5 seconds. Configure serial onitor on host for 9600 baudrate to be able to read and write to blue pill using uart. The expected output is displayed in the *Output* section.
98
98
99
99
## Dependencies
100
100
@@ -115,7 +115,7 @@ The application prints time elapsed since boot in interval of 5 seconds. Configu
115
115
```bash
116
116
sudo apt install gcc-arm-none-eabi
117
117
```
118
-
* For mac, visit  page to install arm embedded toolchain.
118
+
* For mac, visit [ARM Downloads](https://developer.arm.com/downloads/-/gnu-rm) page to install arm embedded toolchain.
119
119
120
120
* **openocd**\
121
121
It is an Open On Circuit Debugging tool used to flash and debug arm micro controllers. You can install openocd on linux by running command:
@@ -156,7 +156,7 @@ Running the project is super easy. Just clone, build, and flash.
156
156
cd bluepill-baremetal-projects/uart-polling
157
157
```
158
158
159
-
## Configuration
159
+
### Configuration
160
160
161
161
All the configuration required for building this project is given below.
162
162
@@ -166,19 +166,16 @@ All the configuration required for building this project is given below.
166
166
2. Build type
167
167
In `Makefile`, build type can be configured using variable`DEBUG`. Possible values are `Debug` and `Release`.
168
168
169
-
3. Binary name
170
-
In `CMakeLists.txt`, output binary name can be configured using `project(<binary-name>)` macro.
171
-
** update above info in`.vscode/launch.json` as well for debugging to work.
172
169
173
-
## Build
170
+
### Build
174
171
175
172
Run following commandin terminal to generate flashable binaries for blue pill board. Build files will be written to **Build Output Directory** as configured.
176
173
177
174
```bash
178
175
make all
179
176
```
180
177
181
-
## Flash
178
+
### Flash
182
179
183
180
1. Connect STlink to PC and blue pill board using swd headers.
184
181
2. Put blue pill board in programming mode.
@@ -190,7 +187,10 @@ make flash
190
187
191
188
## Output
192
189
193
-
Onboard led connected to Pin C13 can be observed to be blinking every second.
190
+
The following output should be available on serial monitor.
191
+
192
+

0 commit comments