AnsweredAssumed Answered

Porting project from MC9s08sg16 to MC9S08DZ32

Question asked by andrey lapshov on Aug 22, 2018
Latest reply on Aug 26, 2018 by andrey lapshov

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.

Attachments

Outcomes