Viewing external RAM as lwmem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Viewing external RAM as lwmem

ソリューションへジャンプ
1,423件の閲覧回数
kecart
Contributor III

I'm using lwmem in my Kinetis project and I have external SRAM.  It is a K61 with internal SRAM at 0x1FFF0000-0x2000FFFF and External SRAM at 0xA0000000-0xA003FFFF.  Is there a way to set up MQX so the TAD can see the external memory in the "MQX Lightweight Memory Blocks" window?

0 件の賞賛
返信
1 解決策
1,150件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Kelly,

Not sure if this does the trick for you but I think it does.

I used the following MQX application example as my starting point.

C:\Freescale\Freescale_MQX_4_1_1_GA\mqx\examples\test

I did this on the TWR-K60F120 tower hardware.

Attached is modified linker script.  It shortened the default heap size and creates/left space for defining other lwmem pools (my example has them size 0x200).  You could define this memory anywhere as far as I can tell.

Attached it my test.c that created 4 additional lwmem pool that can be seem in the "MQX Light Memory Pools" TAD tab.

ScreenHunter_113 Feb. 27 17.01.gif

Regards,

David

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,151件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Kelly,

Not sure if this does the trick for you but I think it does.

I used the following MQX application example as my starting point.

C:\Freescale\Freescale_MQX_4_1_1_GA\mqx\examples\test

I did this on the TWR-K60F120 tower hardware.

Attached is modified linker script.  It shortened the default heap size and creates/left space for defining other lwmem pools (my example has them size 0x200).  You could define this memory anywhere as far as I can tell.

Attached it my test.c that created 4 additional lwmem pool that can be seem in the "MQX Light Memory Pools" TAD tab.

ScreenHunter_113 Feb. 27 17.01.gif

Regards,

David

0 件の賞賛
返信
1,150件の閲覧回数
kecart
Contributor III

pastedImage_1.png

0 件の賞賛
返信
1,149件の閲覧回数
soledad
NXP Employee
NXP Employee

Hello Kelly,

Unfortunately, at this moment there is not possible to use TAD in order to see the external memory in the "MQX Lightweight Memory Blocks" window like you need. Sorry for any inconvenience that may cause.


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信