Rtos code cntains bug possible incompatability with I2C
Fork of mbed-rtos by
Diff: rtx/TARGET_CORTEX_M/RTX_CM_lib.h
- Revision:
- 53:c35dab33c427
- Parent:
- 52:02f5cf381388
- Child:
- 56:2b2a7cc13e28
--- a/rtx/TARGET_CORTEX_M/RTX_CM_lib.h Fri Nov 21 09:45:08 2014 +0000 +++ b/rtx/TARGET_CORTEX_M/RTX_CM_lib.h Wed Nov 26 08:00:25 2014 +0000 @@ -294,6 +294,9 @@ #elif defined(__GNUC__) extern unsigned char __end__[]; #define HEAP_START (__end__) +#elif defined(__ICCARM__) +#pragma section="HEAP" +#define HEAP_START (void *)__section_begin("HEAP") #endif void set_main_stack(void) { @@ -444,6 +447,7 @@ __iar_data_init3(); } osKernelInitialize(); + set_main_stack(); osThreadCreate(&os_thread_def_main, NULL); a = osKernelStart(); exit(a);