Hai,
I am doing project with MK10DN512VLQ Controller in MCUXpresso IDE.
I am using FreeRTOS also. I have requirement that RAM memory (Zero Fill) should not be cleared when one of the variable is set to 0xff in case of BOR or Soft Reset.
If doing so i am getting error Could not allocate required memory in freeRTOS task.
Can somebody suggest me any solution?
Hi Karthik,
This should be possible if you change the initialization in the startup code, in the reset vector there's the initialization of the bss that clear this section. Try looking for the ResetISR(void).
You could try changing it so when the location you want to write it is fill don’t do this.
Let me know if this helps you.
Best Regards,
Alexis Andalon
Hi Andalon,
Any possible method to allocate RAM Memory separately for FreeRTOS Variables and other application Variables?
Hi Karthik,
There's two possible options for this, following the next post you could move all the freertos libraries to other memory:
Relocating code from FLASH to RAM
Or also if you follow the next one, you could select which variables change to other memory:
https://community.nxp.com/docs/DOC-335283
Best Regards,
Alexis Andalon