PE doesn't add COP to vector table

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

PE doesn't add COP to vector table

跳至解决方案
2,455 次查看
GaryOlmstead
Senior Contributor I

Hi --

 

I am using CW 8.2.3 and PE and 9S12A32.  I added the watchdog bean; but no vector was added in the vector table.  The OnWatchDog event is permanently grayed out. 

 

The CPU bean doesn't have a COP event, but does have an OnReset event which is listed with the other reset events.  I enabled this event, still nothing. 

 

I changed the COP bean box called Watchdog Action to "Non maskable interrupt" and got an error saying that COP can't generate an NMI.  The only choice it accepts is Reset CPU, but it still does not change the vector table.

 

Since I don't see anybody else complaining about this, I assume I have missed a check box someplace, but I'll be darned if I can find it.  Any directions would be appreciated.

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
729 次查看
CrasyCat
Specialist III

Hello

 

I am unsure of the version of codeWarrior you are using.

We do not have V8.2.3 for HCS12 MCU.

 

Anyway I did some tests on my V4.7 installation and here is How I can get an interrupt associated with Watchdog

 

  - Add your Watchdog Bean to your project

  - In the Bean inspector for the watchdog bean

      - Configure the Watchdog Period in the Properties tab

      - In the Events tab  double click on the red X in front of OnWatchdog. You get a green mark instead of the red X

 

If you generate code now you will see that vector entry 2 (address 0xFFFA) is now initialized with _COP_EntryPoint a dedicated interrupt function.

 

I hope this helps.

 

CrasyCat

在原帖中查看解决方案

0 项奖励
回复
3 回复数
730 次查看
CrasyCat
Specialist III

Hello

 

I am unsure of the version of codeWarrior you are using.

We do not have V8.2.3 for HCS12 MCU.

 

Anyway I did some tests on my V4.7 installation and here is How I can get an interrupt associated with Watchdog

 

  - Add your Watchdog Bean to your project

  - In the Bean inspector for the watchdog bean

      - Configure the Watchdog Period in the Properties tab

      - In the Events tab  double click on the red X in front of OnWatchdog. You get a green mark instead of the red X

 

If you generate code now you will see that vector entry 2 (address 0xFFFA) is now initialized with _COP_EntryPoint a dedicated interrupt function.

 

I hope this helps.

 

CrasyCat

0 项奖励
回复
729 次查看
GaryOlmstead
Senior Contributor I

Oops, sorry.  You're right, of course.  I have been time sharing between this project and one with a DSP56858, and got my CW versions crossed up.  I am not sure what version I have here.  I thought it was 4.6, but Help About lists numbers from  3.1 to 5.5.

 

Anyway, i tried double clicking on the red X, and nothing happens.  It works just fine on the BeforeNewSpeed and AfterNewSpeed choices.  As does clicking on the circular arrow to the right of the choice.  But their "don't generate code" labels are not grayed out, they are black.  The OnWatchDog "don't generate code" label is grayed out.  And it doesn't have a circular arrow.

 

I am pretty sure I have an unlimited license for this version, so I have not upgraded it.

 

Gary

 

0 项奖励
回复
729 次查看
GaryOlmstead
Senior Contributor I

I downloaded the free version of the latest code, and it generates the COP reset vector and code as expected.

 

Thanks for your help.

 

Gary

 

0 项奖励
回复