This commit is contained in:
MMS 2024-01-04 11:32:37 -05:00
parent d2fbb4b05b
commit a1275ec0e7
2 changed files with 19 additions and 1 deletions

View File

@ -9,6 +9,13 @@ This example demonstrates the [Dining Philosophers Problem (DPP) application](ht
<b>STM32 NUCLEO-C031C6</b>
</p>
> **NOTE**
This example can be used as a starting point for any other ARM Cortex-M MCU, including those based on differnt Cortex-M cores (M0/M0+/M3/M4/M7/M23/M33/M55/M85...) The most simplifying factor is that the QP-ports to Cortex-M don't need to change at all (the correct port is selected automatically based on the standard preprocessor macros provided by the compiler).
<p align="center">
<img src="qp_arm-cm.jpg"/>
</p>
## Features Demonstrated
- multiple cooperating active objects
- immutable (const) events
@ -67,7 +74,7 @@ examples\arm-cm\dpp_nucleo-c031c6
|
```
# Builing the example
# Building the example
### GNU/ARM
- open terminal window
@ -106,6 +113,17 @@ in IAR EWARM IDE. Build/Debug/Download to the board from the IDE.
- Change the build configuration in the "Project Configuration" drop-down menu.
# Uploading the Binary to the Board
The STM32 NUCLEO boards enumerate as a USB drive when connected to the host computer. The boards then can be programmed by **copying** the binary to that USB drive. This can be useful for the command-line GNU/ARM build. For example, to program the binary produced for the Debug configuration, you can type:
```
copy dbg\dpp-qk.bin E:
```
NOTE: The above command assumes that the NUCLEO board enumerated as drive E:. Of course you need to adjust the command for your specific drive letter.
Alternatively, if you use IDEs, such as KEIL-MDK or IAR EWARM, you can program the board from the IDE (e.g., by starting a debug session).
# Tracing with QP/Spy
When the board is flashed with the Spy build configuration, it produces the QP/Spy software tracing output to the built-in virtual COM port of the TivaC LauchPad board. The trace is binary rather than ASCII, and therefore requires a special host-based application called QSPY.

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB