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

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

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

Jump to solution
1,239 Views
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 Kudos
1 Solution
915 Views
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

View solution in original post

1 Reply
916 Views
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