How to set the enabling address for MC9S12EP100?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to set the enabling address for MC9S12EP100?

跳至解决方案
998 次查看
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 项奖励
回复
1 解答
951 次查看
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

在原帖中查看解决方案

4 回复数
995 次查看
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 项奖励
回复
980 次查看
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 项奖励
回复
991 次查看
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 项奖励
回复
952 次查看
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