Addressing problem of motor library(Automotive Math and Motor Control Library Set for NXP MC9S12ZVM devices)

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

Addressing problem of motor library(Automotive Math and Motor Control Library Set for NXP MC9S12ZVM devices)

ソリューションへジャンプ
2,208件の閲覧回数
zhoumaokang
Contributor II

The memory module in the NXP's Motor Library (Automotive Math and Motor Control Library Set for NXP MC9S12ZVM devices) is small (14bit addresses). My project's memory module is medium (16bit addresses). When I use the library function to compile, there will be errors, but if I change the project's memory module to small, the code size will be over 16K. When I download the program to the chip, there will be a failure. Is it an addressing problem?memory module.pngbuild project.png

ラベル(1)
0 件の賞賛
返信
1 解決策
2,061件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

yes, it affects global non-constant data allocation. All global non-constant data must fit into  RAM.


Have a great day,
Jun Zhang

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

元の投稿で解決策を見る

3 返答(返信)
2,061件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

HI,

The application memory model MUST match with the library model. Otherwise application project will produce build error. it's normal.

Difference of each memory models:

Small Memory Model - data to be fit in 14-bit addresses (< 16 KB)

Medium Memory Model - data to be fit in 18-bit addresses (< 256 KB)

Large Memory Model - data to be fit in 24-bit addresses


Have a great day,
Jun Zhang

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

2,061件の閲覧回数
zhoumaokang
Contributor II

HI

Memory modle is the addressing mode of RAM?

Have a great day,

Zhoumao Kang

0 件の賞賛
返信
2,062件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

yes, it affects global non-constant data allocation. All global non-constant data must fit into  RAM.


Have a great day,
Jun Zhang

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------