To fix the hang problem

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE by shubham c

Revision:
244:cf5b95f5d499
Parent:
240:946a9342a95f
--- a/main.cpp	Fri Jul 08 12:18:41 2016 +0000
+++ b/main.cpp	Sun Jul 10 12:31:49 2016 +0000
@@ -107,7 +107,7 @@
     
     // DEBUG
     //gPC.puts("welcome to mng_tm_tc\r\n");
-    gPC.baud(57600);//changed for bypassing COM
+    gPC.baud(115200);//changed for bypassing COM
     
     // COMMON SPI
     spi.format(8,0);
@@ -119,11 +119,11 @@
     gCS_ADF = 1;
     
     FCTN_CDMS_INIT_RTC();/* rtc initialization*/
-    //FCTN_CDMS_SD_INIT();/* sd card initialization*/
+    FCTN_CDMS_SD_INIT();/* sd card initialization*/
     
     
-    //uint8_t test[512] = {0};
-    //disk_write(test,7000); //to be used only just before launch
+    uint8_t test[512] = {0};
+    disk_write(test,7000); //to be used only just before launch
     
     #if DEBUG
     gPC.puts("welcome to mng_tmtc\r\n");
@@ -132,7 +132,7 @@
     
     
     // COM_MNG_TMTC THREAD
-    /*gCOM_MNG_TMTC_THREAD = new Thread(COM_MNG_TMTC_FUN);
+    gCOM_MNG_TMTC_THREAD = new Thread(COM_MNG_TMTC_FUN);
     gCOM_MNG_TMTC_THREAD->set_priority(osPriorityHigh);
     #if DEBUG
     gPC.puts("allocating threads\r\n");
@@ -142,7 +142,7 @@
     gSCIENCE_THREAD->set_priority(osPriorityAboveNormal);
     #if DEBUG
     gPC.puts("competed allocating threads\r\n");
-    #endif*/
+    #endif
     
     
     master.frequency(400000);
@@ -167,11 +167,11 @@
     //RtosTimer gCDMS_HK_TIMER(FCTN_CDMS_HK_MAIN, osTimerPeriodic);
     //gCDMS_HK_TIMER.start(5000);
     
-    test_pl_main();
+    /*test_pl_main();
     
     RtosTimer gCDMS_PL_TIMER(FCTN_CDMS_PL_MAIN, osTimerPeriodic);
     gCDMS_PL_TIMER.start(10000);
-    
+    */
     /*starting the thread with signal*/
     //set_sig();
     //payload_isr_fun();