31
NXPTM M522XX, KINETIS and i.MX RT / OUR_HEAP_SIZE increments
« on: July 12, 2010, 10:00:07 PM »
Mark,
My project has run to the limits of the chip I'm using, and I ran out of stack space. After a lot of squeezing here and there, I changed the OUR_HEAP_SIZE define.
I don't know enough about the memory structure to know if this is an issue or not. Things seem to be working for now.
HEAP Free 0x0194 from 0x5600
STACK Unused 0x00d7
Prior to the heap change, I had no stack left.
What are your thoughts on changing from 1024 to 512?
Thanks,
Aaron
My project has run to the limits of the chip I'm using, and I ran out of stack space. After a lot of squeezing here and there, I changed the OUR_HEAP_SIZE define.
Code: [Select]
#define OUR_HEAP_SIZE (HEAP_REQUIREMENTS)((22*1024)*MEM_FACTOR)
toCode: [Select]
#define OUR_HEAP_SIZE (HEAP_REQUIREMENTS)((43*512)*MEM_FACTOR)
I don't know enough about the memory structure to know if this is an issue or not. Things seem to be working for now.
HEAP Free 0x0194 from 0x5600
STACK Unused 0x00d7
Prior to the heap change, I had no stack left.
What are your thoughts on changing from 1024 to 512?
Thanks,
Aaron