finally able to get freeRTOS run with current mouse + keyboard example

NOTES: print_greeting if is executed before the start of freeRTOS scheduler --> hardfault
- print_greeting->vsprintf->systick -> bunch of ISR --> hardfault.

printf using serial after the start of scheduler is ok though
This commit is contained in:
hathach
2013-04-25 15:43:33 +07:00
parent 92994c8192
commit 1ae5484320
9 changed files with 518 additions and 181 deletions

View File

@@ -33,7 +33,7 @@
#include "task.h"
#include "FreeRTOSCommonHooks.h"
//#include "hal/hal.h"
#include "boards/board.h"
/*****************************************************************************
* Private types/enumerations/variables
@@ -81,7 +81,7 @@ void vApplicationStackOverflowHook(xTaskHandle pxTask, signed char *pcTaskName)
(void) pxTask;
(void) pcTaskName;
DEBUGOUT("DIE:ERROR:FreeRTOS: Stack overflow in task %s\r\n", pcTaskName);
PRINTF("DIE:ERROR:FreeRTOS: Stack overflow in task %s\r\n", pcTaskName);
/* Run time stack overflow checking is performed if
configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook
function is called if a stack overflow is detected. */