diff --git a/epicardium/FreeRTOSConfig.h b/epicardium/FreeRTOSConfig.h
index 108bb32db7c4b85e756abe23ee0c34847b0aeebf..2cc7cdcde9caaa78e65989d78c5c15f4542bdf87 100644
--- a/epicardium/FreeRTOSConfig.h
+++ b/epicardium/FreeRTOSConfig.h
@@ -16,7 +16,7 @@
  *
  * Heap is managed by libc (heap_3.c).
  */
-#define configMINIMAL_STACK_SIZE    ((unsigned short)128)
+#define configMINIMAL_STACK_SIZE    ((unsigned short)1024)
 
 /* FIXME: Assign proper priorities to all interrupts */
 #define configMAX_PRIORITIES        5
@@ -73,4 +73,12 @@ void post_idle_sleep(TickType_t xExpectedIdleTime);
 #define configPOST_SLEEP_PROCESSING(xExpectedIdleTime) \
 	post_idle_sleep(xExpectedIdleTime)
 
+/*
+ * Uncomment to trace FreeRTOS malloc wrapper.
+ *
+ */
+// #include <stdio.h>
+// #define traceMALLOC( pvAddress, uiSize ) printf("[%s:%d] %p %d\n", __FILE__, __LINE__, pvAddress, uiSize)
+
+
 #endif /* FREERTOS_CONFIG_H */
diff --git a/epicardium/main.c b/epicardium/main.c
index e61f533c23628d999696431860b1e9d3f349c1dd..edde4ad7411e8d4c94f8e7f18aacfce4f8ee1e90 100644
--- a/epicardium/main.c
+++ b/epicardium/main.c
@@ -77,7 +77,7 @@ int main(void)
 	if (xTaskCreate(
 		    vApiDispatcher,
 		    (const char *)"API Dispatcher",
-		    configMINIMAL_STACK_SIZE,
+		    configMINIMAL_STACK_SIZE * 4,
 		    NULL,
 		    tskIDLE_PRIORITY + 2,
 		    &dispatcher_task_id) != pdPASS) {