Kinetis Memory Splitter

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

Kinetis Memory Splitter

Jump to solution
892 Views
Briwal
Contributor I

Using MQX Kinetis K40x256, in the init_bsp.c file, the _bsp_enable_card function allocates all memory below 0x20000000. The comments state that it is a memory splitter to prevent accessing both ram banks in one instruction. This takes up 30K of my precious 64K SRAM.

 

So I can only use 32K (the uppoer half) of the 64K SRAM available? I cannot believe that is a valid solution.

 

Does anyone have a work around for this?

 

 

0 Kudos
1 Solution
480 Views
DavidS
NXP Employee
NXP Employee

This should be fixed in the FSLMQX3.7.0Beta release which happens at end of this month.

Regards,

David

View solution in original post

0 Kudos
3 Replies
480 Views
Briwal
Contributor I

Please note that this is only a problem when using LWMEM component. It works just fine when using the normal memory component.

0 Kudos
481 Views
DavidS
NXP Employee
NXP Employee

This should be fixed in the FSLMQX3.7.0Beta release which happens at end of this month.

Regards,

David

0 Kudos
480 Views
daweiy
Contributor I

Hi, I got the same problem, I am using K61, 128K internal ram. Before this memory splitter, I got about 93K heap, but after this code I got only 23K available.

What I did is just remove this line of code and test it.

I am using FSLMQX 4.0.2, can anyone give me some advices to fix this problem?

Thanks in advance.

0 Kudos