Demonstration program for STM Studio monitor and debug tool.

Dependencies:   mbed

The ARM Cortex M series supports tracing capabilities through the Serial Wire Debug (SWD) en Serial Wire Output(SWO) port. A simple lib for tracing via SWO is available here. The STM Studio application provided for free by ST has significantly more features. STM Studio is a graphical user interface that allows real-time sampling and visualizing of user's variables while the application is running.

/media/uploads/wim/stm-studio.jpg

STM Studio is designed to run on PCs with Microsoft Windows operating systems. This tool works with STM32 microcontrollers through JTAG or SWD (serial wire debug) interface. The ST-LINK/v2-1 interface on the mbed nucleo boards can be used with STM Studio. The application code shown here provides an example.

More info is available here

Revision:
6:3d66c065c42a
Parent:
5:233f5aeeec5f
--- a/main.cpp	Mon Mar 14 21:45:14 2016 +0000
+++ b/main.cpp	Sat Mar 19 22:22:59 2016 +0000
@@ -150,7 +150,7 @@
     c++;
     s = 100.0f * sin((float)c * 3.1415f / 128.0f);
     b1 = myBtn1;
-    if (b1 & (b2 == 1)) {
+    if (b1 && (b2 == 1)) {
       pc.putc('1');
       wt = 0.7f;
     }