mirror of
https://github.com/QuantumLeaps/qpcpp.git
synced 2025-01-28 06:02:56 +08:00
75 lines
2.7 KiB
Plaintext
75 lines
2.7 KiB
Plaintext
About this Example
|
|
==================
|
|
This directory contains the "Dining Philosophers Problem" (DPP) example
|
|
running on the NXT mbed-LPC1768 board (ARM Cortex-M3). The following
|
|
versions of the example are provided:
|
|
|
|
dpp_mbed-lpc1768/
|
|
|
|
|
+-qk/ - preemptive QK kernel
|
|
| +-arm/ - ARM-KEIL toolset
|
|
| +-gnu/ - GNU-ARM toolset
|
|
| +-iar/ - IAR-ARM toolset
|
|
|
|
|
+-qv/ - cooperative QV kernel
|
|
| +-arm/ - ARM-KEIL toolset
|
|
| +-gnu/ - GNU-ARM toolset
|
|
| +-iar/ - IAR-ARM toolset
|
|
|
|
***
|
|
NOTE: The sub-directory "gnu" contains the Makefile for a generic GNU-ARM
|
|
toolset (e.g., see http://gnutoolchains.com/arm-eabi/). Thus, this
|
|
project provides a way of building mbed applications locally with
|
|
free and unrestricted tools.
|
|
***
|
|
***
|
|
NOTE: To build the code on Windows, you need to download and install
|
|
the GNU make utility. The Qtools collection from Quantum Leaps contains
|
|
GNU make and other UNIX-style utilites for Windows (native Windows,
|
|
without the need to install CygWin).
|
|
***
|
|
|
|
Downloading the Code to mbed-LPC1768 Board
|
|
==========================================
|
|
After building the code with any of the supported toosets, you can simply
|
|
copy the binary image to the mbed folder for execution.
|
|
|
|
The whole build process and loading the image to the mbed board can
|
|
be executed directly from the QM modeling (by means of external tools).
|
|
The provided QM model (dpp.qm) comes pre-configured with tools
|
|
setup to build (via make) and copy the code to the mbed board.
|
|
|
|
|
|
Support Code for NXT mbed-LPC1768 Board
|
|
=======================================
|
|
The directory qpc\3rd_party\mbed-lpc1768 contains the CMSIS-compliant
|
|
device code for the NXT LPC176xx MCUs (ARM Cortex-M3). Please see the
|
|
README.txt file in this folder for more details.
|
|
|
|
|
|
Note About the Board Support Package for NXT mbed-LPC1768
|
|
=========================================================
|
|
The provided Board Support Package (see bsp.c) is minimal for the
|
|
application at hand and is completely **standalone**, meaning that
|
|
it does NOT use the extensive mbed driver library. The use of the
|
|
mbed-library is possible, but not necessary (but requires C++).
|
|
|
|
|
|
QS Software Tracing Instrumentation
|
|
===================================
|
|
This example provides the "Spy" build configuration, which outputs the QS
|
|
(Quantum Spy) software tracing data through UART0 of the mbed-LPC1768 board,
|
|
which is connected to the virtual COM port of the mbed USB connection.
|
|
|
|
The output is generated at 115200 baud rate.
|
|
|
|
Here is an example invocation of the QSPY host application to receive
|
|
the QS data from mbed-LPC1768 :
|
|
|
|
qspy -cCOM20
|
|
|
|
The actual COM port number might be different on your Windows machine.
|
|
Please check the Device Manager to find the COM port number.
|
|
|
|
|