this is using the mbed os version 5-13-1
Diff: source/main-https.cpp
- Revision:
- 88:7ffa053be662
- Parent:
- 87:99b37d26ff2a
- Child:
- 92:ec9550034276
--- a/source/main-https.cpp Fri Mar 29 22:18:33 2019 +0000
+++ b/source/main-https.cpp Sun Mar 31 22:09:45 2019 +0000
@@ -8,6 +8,7 @@
#include <events/mbed_events.h>
#include <mbed.h>
#include "ble/BLE.h"
+#include "fault_handlers.h"
//#include "BLE.h"
#include "ATCmdParser.h"
//#include "BLEDevice.h"
@@ -95,7 +96,7 @@
#else
// using global heap
Thread btle_thread(BTLE_THREAD_PRIORITY, 1024);
-Thread wifi_thread(WIFI_THREAD_PRIORITY, 4*1024);
+Thread wifi_thread(WIFI_THREAD_PRIORITY, 6*1024);
Thread atcmd_thread(ATCMD_THREAD_PRIORITY, 4*1024);
#endif
@@ -533,6 +534,8 @@
device->printf("\r\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++ \r\n");
device->printf("\r\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++ \r\n");
wifi_thread.start(callback(wiFiManager, &WiFiManager::runMain));
+ printf("\r\n after starting wifi thread \r\n");
+ print_memory_info();
// dispatch event queue on event thread
evt_thread.start(callback(&eventQueue, &EventQueue::dispatch_forever));
device->printf("\r\n++++++ Starting ATCmdmanager ++++++ \r\n");
@@ -545,6 +548,9 @@
false);
//aTCmdManager->runMain();
atcmd_thread.start(callback(aTCmdManager, &ATCmdManager::runMain));
+ printf("\r\n after starting atcmd thread \r\n");
+ print_memory_info();
+ //SCB->SHCSR |= 0x00070000;//Enable fault handler.
//wiFiManager->runMain();
while(1) wait(0.1);
//performFreeMemoryCheck();