EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

[MC9S12XDP512] How to jump to _Startup() from user code (Problem)

Started by yadunandan kasu February 7, 2008
Hello all,

I am trying to develop the CAN communication between my PC
and the HCS12X starter kit which includes MC9S12XDP512 MCU.Here I am
facing a small problem at the initial stage itself.

As we know, the Reset vector is configured to _Startup().
But I modified the Reset vector to my own ISR _iProjectEntry() in
the .prm file and then I want to call the _Startup() inside my ISR
_iProjectEntry().

To call _Startup() inside _iProjectEntry(),I am using the following
instruction

__asm jmp _Startup;

But, the compiler is showing the below error,

"C12020: Unknown Operand Combination:
Instr:/Opr1:/Opr2:"

can anyone please provide me correct information

Thanks to all of you
Kasu
Hi everyone,

I think i have to define the function prototype with extern for _Startup() function to use it in my soruce file (e.g. XX.c). as below

extern void _Startup(void);

anyways, its working fine now ,,but if there are any suggessions, plz provide me

thanks to all again
Kasu

yadunandan kasu wrote:
Hello all,

I am trying to develop the CAN communication between my PC
and the HCS12X starter kit which includes MC9S12XDP512 MCU.Here I am
facing a small problem at the initial stage itself.

As we know, the Reset vector is configured to _Startup().
But I modified the Reset vector to my own ISR _iProjectEntry() in
the .prm file and then I want to call the _Startup() inside my ISR
_iProjectEntry().

To call _Startup() inside _iProjectEntry(),I am using the following
instruction

__asm jmp _Startup;

But, the compiler is showing the below error,

"C12020: Unknown Operand Combination:
Instr:/Opr1:/Opr2:"

can anyone please provide me correct information

Thanks to all of you
Kasu

regards
Yadunandan Kasu(Nandu)

---------------------------------
5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.
That looks fine,
that's actually the same way a wizard generated project with Processor
Expert does it.

Daniel

-----Original Message-----
From: 6... [mailto:6...] On Behalf
Of kasu nandu
Sent: Thursday, February 07, 2008 6:11 AM
To: 6...
Subject: Re: [68HC12] [MC9S12XDP512] How to jump to _Startup() from user
code (Problem)

Hi everyone,

I think i have to define the function prototype with extern for
_Startup() function to use it in my soruce file (e.g. XX.c). as below

extern void _Startup(void);

anyways, its working fine now ,,but if there are any suggessions, plz
provide me

thanks to all again
Kasu

yadunandan kasu wrote:
Hello all,

I am trying to develop the CAN communication between my PC and the
HCS12X starter kit which includes MC9S12XDP512 MCU.Here I am facing a
small problem at the initial stage itself.

As we know, the Reset vector is configured to _Startup().
But I modified the Reset vector to my own ISR _iProjectEntry() in the
.prm file and then I want to call the _Startup() inside my ISR
_iProjectEntry().

To call _Startup() inside _iProjectEntry(),I am using the following
instruction

__asm jmp _Startup;

But, the compiler is showing the below error,

"C12020: Unknown Operand Combination:
Instr:/Opr1:/Opr2:"

can anyone please provide me correct information

Thanks to all of you
Kasu

regards
Yadunandan Kasu(Nandu)

---------------------------------
5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.

The 2024 Embedded Online Conference