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

Files at this revision

API Documentation at this revision

Comitter:
wim
Date:
Mon Mar 14 21:17:53 2016 +0000
Parent:
3:f8c9de39b056
Child:
5:233f5aeeec5f
Commit message:
Test3

Changed in this revision

dummy.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/dummy.lib	Mon Mar 14 20:56:33 2016 +0000
+++ b/dummy.lib	Mon Mar 14 21:17:53 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/users/wim/code/dummy/#bdb3c6b013c1
+https://developer.mbed.org/users/wim/code/dummy/#d6f5bb1b19a2
--- a/main.cpp	Mon Mar 14 20:56:33 2016 +0000
+++ b/main.cpp	Mon Mar 14 21:17:53 2016 +0000
@@ -20,6 +20,7 @@
  * THE SOFTWARE.
  */
 #include "mbed.h"
+#include "dummy.h"
 
 //#define D_DEBUG 0  //disable debug with STMstudio
 #define D_DEBUG 1  //enable debug with STMstudio
@@ -135,7 +136,8 @@
   pc.printf("b2 is at 0x%08X\r\n", &b2);
 #endif
       
-      
+  pc.printf("a is 0x%08X\r\n", dummy());
+        
   while(1) {
     myled1 = D_LED_ON;  // LED is ON
     wait(0.1);          // 100 ms