Porting project from MC9s08sg16 to MC9S08DZ32

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

Porting project from MC9s08sg16 to MC9S08DZ32

1,064件の閲覧回数
punxer
Contributor II

Hello, i have a project on MC9S08SG16 and i need to add can support for my project. I choose MC9S08DZ32 with onboard can. what should i do to port my software from SG16 to DZ32. I makw some changest at code and now it compiles. But if i start it on simulator i am getting error before main 

static void near loadByte(void) {
asm {
PSHH
PSHX
#ifdef __HCS08__
LDHX 5,SP
LDA 0,X - here
AIX #1
STHX 5,SP
#else.....


 What should i do for right porting on new MCU? 

Thanx in advance.

ラベル(1)
タグ(2)
3 返答(返信)

796件の閲覧回数
punxer
Contributor II

Hello i solved this problem creatring new project for DZ32 and moving all sources i need to new project. Then i changet few register names. Program works good. Now i just need to map some I/O Ports. Thanx

0 件の賞賛

796件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Thanks for the sharing. You are welcome.

0 件の賞賛

796件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi,

loadByte is called during initializing data when copy data from ROM to RAM.

DZ32 has larger RAM/ROM size than SG16. Normally this problem should not happen.

Please upload your demo project here thus we can check the problem directly. Thanks.


Have a great day,
Jennie Zhang

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