How to set the enabling address for MC9S12EP100?

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

How to set the enabling address for MC9S12EP100?

Jump to solution
845 Views
TingTing
Contributor II

Hi Developer,

I am working on MC9S12EP100 chip. I want to know how to set the enabling address. Dose there several address for choice? How to set it?

Waiting for your help.
Many thanks.

BR, Shi Ting Ting

0 Kudos
1 Solution
798 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

I am sorry a well known virus shot me down so...

Yes, it is well known as reset vector. The vector where the address of code (loaded into PC) after reset is stored. The vector table can be found at

lama_0-1609854196586.png

As you can see the start can be also different depending on reset source.

As an example for COP reset I have attached code example.

 

Best regards,

Ladislav

View solution in original post

4 Replies
842 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

what do you mean by enabling address?

As far as I know XEP100 does no have anything in this area.

Could you please refine the question and provide more info what you want to do.

Best regards,

Ladislav

0 Kudos
827 Views
TingTing
Contributor II

Hi Iama,

I am still waiting for your reply.

How the CPU know which address will be load first? 

I guess, the address stored in 0xFFFE, is the one CPU will load, am I right ?

BR, Shi Ting Ting

0 Kudos
838 Views
TingTing
Contributor II

Hi Iama,

Thanks for your reply.

The enabling address, for example, my bootloader is locate in 0xC000, so I think the 0xC000 is the enabling address.

BR, Shi Ting Ting 

0 Kudos
799 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

I am sorry a well known virus shot me down so...

Yes, it is well known as reset vector. The vector where the address of code (loaded into PC) after reset is stored. The vector table can be found at

lama_0-1609854196586.png

As you can see the start can be also different depending on reset source.

As an example for COP reset I have attached code example.

 

Best regards,

Ladislav