Hi.
I am working on nRF52832. I want to store a structure with 492kb I am getting heap is too large error. So how can I tell the complier to store my variable in flash instead of RAM by changing the settings in segger please let me kindly
Hi.
I am working on nRF52832. I want to store a structure with 492kb I am getting heap is too large error. So how can I tell the complier to store my variable in flash instead of RAM by changing the settings in segger please let me kindly
In your makefile add on these compiler flag(ex:4K heap & stack):
CFLAGS += -D__HEAP_SIZE=4096
CFLAGS += -D__STACK_SIZE=4096
ASMFLAGS += -D__HEAP_SIZE=4096
ASMFLAGS += -D__STACK_SIZE=4096
Where can I find the makefile kindly guide me.
Thanks &Regards
Pspavi
gcc with make file.....
SES you may check your project file *.emProject confiuration
Here.....
arm_linker_heap_size="4096"
arm_linker_process_stack_size="0"
arm_linker_stack_size="4096"
Yes I changed same error
What's kind of error? You may attach your error message.....If it's the memory allocated problem, you have to free memory. And I doubt that the nRF52832 allocated the memory with 492kB? How do you think the memory space could be larger than 64KB?