Free RTOS RAM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Free RTOS RAM

871 Views
kaarthick
Contributor II

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?

0 Kudos
3 Replies

757 Views
Alexis_A
NXP TechSupport
NXP TechSupport

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

0 Kudos

757 Views
kaarthick
Contributor II

Hi Andalon,

Any possible method to allocate RAM Memory separately for FreeRTOS Variables and other application Variables? 

0 Kudos

757 Views
Alexis_A
NXP TechSupport
NXP TechSupport

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

0 Kudos