Differences between SDM and LDM in CW10.7 for target 56F8xxx

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

Differences between SDM and LDM in CW10.7 for target 56F8xxx

跳至解决方案
3,001 次查看
guenter_loettrich
NXP Employee
NXP Employee

Dear all,

is there a document available which explains the differences between memory models SDM and LDM?

It's for target 56F8xxxx.

When increasing the size of code in SDM >64KB then errors show up during build time of the project. (see attachment)

Is it necessary to switch to LDM mode if code size is bigger than 64KB?

LDM.jpg

br

Guenter

0 项奖励
回复
1 解答
2,677 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Guenter,

I think we have not the documentation to address the LDM/SDM subject. In SDM mode, the code size is limited to 64K words, and data size is limited to 64K words, the pointer of data structure in C language is 16 bits. In LDM mode, the code size should be limited to 2**(21) or 2M words, the data size is limited to 2**(23) or 8M words.

Hope it can help you

BR

Xiangjun Rong

在原帖中查看解决方案

1 回复
2,678 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Guenter,

I think we have not the documentation to address the LDM/SDM subject. In SDM mode, the code size is limited to 64K words, and data size is limited to 64K words, the pointer of data structure in C language is 16 bits. In LDM mode, the code size should be limited to 2**(21) or 2M words, the data size is limited to 2**(23) or 8M words.

Hope it can help you

BR

Xiangjun Rong