FreeRTOS xHeap address location

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FreeRTOS xHeap address location

452 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nkarakotas on Tue Mar 06 00:31:11 MST 2012
Hello,

In my application im using quite alot of ram for eth/ppp/httpd/timezone etc. Im starting to have problems with the heap. Im not using the USB in my application and I would like to use that space to have lwip heap and FreeRTOS xheap.

Which is the best way of doing this? By just using the __BSS(RAM2) macros?

Regards,
Nick
0 项奖励
回复
1 回复

424 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nkarakotas on Tue Mar 06 00:53:22 MST 2012
I added the following:

static union xRTOS_HEAP
{
#if portBYTE_ALIGNMENT == 8
volatile portDOUBLE dDummy;
#else
volatile unsigned long ulDummy;
#endif
unsigned char ucHeap[ configTOTAL_HEAP_SIZE ];
} xHeap __attribute__((section(".RamAHB32")));
0 项奖励
回复