This is sample program for Nucleo L152RE (and F401RE & F411RE) mbed-rtos. You need to modify mbed-src and mbed-rtos before compile it.

Dependencies:   mbed-rtos mbed-src SetRTC

Fork of GR-PEACH_test_on_rtos_works_well by Kenji Arai

Please refer below link.
/users/kenjiArai/notebook/necleo-l152re-rtos-sample-also-for-f401re--f411re-/

Revision:
9:de986e74bd93
Parent:
8:4006b111c0d4
Child:
10:1c0f58b9c048
--- a/mon.cpp	Sat Feb 07 21:25:10 2015 +0000
+++ b/mon.cpp	Thu Feb 12 07:53:25 2015 +0000
@@ -266,7 +266,7 @@
     //  check and set RTC
     //---------------------------------------------------------------------------------------------
         case 'r' :
-            put_r(); 
+            put_r();
             while(true) {
                 show_flag1 = 1;
                 if ( READABLE() ) {
@@ -284,23 +284,6 @@
             msg_hlp();                 
             break;
     //---------------------------------------------------------------------------------------------
-    //  Go to special command
-    //---------------------------------------------------------------------------------------------
-        case 'x' :
-#if defined(TARGET_RZ_A1H)
-            PRINTF("Not implement yet\r\n");
-#elif defined(TARGET_LPC1114)
-            PRINTF("Not implement yet\r\n");
-#elif defined(TARGET_NUCLEO_F411RE) || defined(TARGET_STM32F401RE)
-            PRINTF("Not implement yet\r\n");
-#elif defined(TARGET_LPC1768)
-            PRINTF("Not implement yet\r\n");
-#elif defined(TARGET_K64F)
-            PRINTF("Not implement yet\r\n");
-#endif
-            PRINTF("->Came back monitor\r\n");            
-            break;
-    //---------------------------------------------------------------------------------------------
     //  Go back to main()
     //---------------------------------------------------------------------------------------------
         case 'q' :        // Quit