How to change the size of Upper SRAM and Lower SRAM in MCUEXPRESSO for MKV30 Kinetics controller

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to change the size of Upper SRAM and Lower SRAM in MCUEXPRESSO for MKV30 Kinetics controller

1,414 次查看
Gouthambalraj
Contributor II

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?nxpforum1.png

 

0 项奖励
回复
2 回复数

1,411 次查看
ErichStyger
Specialist I

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

0 项奖励
回复

1,408 次查看
Gouthambalraj
Contributor II

Hi Eric ,

 

   Thanks for your response. I will take a look at the article you shared.

0 项奖励
回复