I am using MKV30F64VLF10 controller for motor drive application. The controller has 16kb of RAM. This 16kb is split into two halves (Upper SRAM and Lower SRAM) 8kb each. This creates a problem when any object is stored sharing both sections.
So can we delete the lower SRAM and update the size of upper SRAM to 16kb? I tried that and it compiled without any error. But I am not sure if that's the right way to do or is there any guidelines for this?
You might check the article on https://mcuoneclipse.com/2013/07/10/freertos-heap-with-segmented-kinetis-k-sram/ and especially the discussion in the comments section. Bottom line is if you have an object crossing that memory boundary, and depending on the access, you will end up in a hard fault. Because there are two different memory controllers.
I hope this helps,
Erich
Hi Eric ,
Thanks for your response. I will take a look at the article you shared.