PE overrides the interrupt vector table

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

PE overrides the interrupt vector table

2,962 次查看
Ivand
Contributor I
I am using Processor Expert to init and generate Bean code, but i also have my own interrupt routines.
The problem is PE overrides my interrupt vectors and replaces it with the default vector address.
How can i instruct PE not to override the vectors i have set?
Setting the file properties to readonly doesn't help when you re-open CW.
 
Any help on this would be appreciated, thanks
标签 (1)
0 项奖励
回复
2 回复数

643 次查看
CrasyCat
Specialist III
Hello
 
If you are using ProcessorExpert to generate low level drivers and if you want to associate your own interrupt function for a specific interrupt you should proceed as follows:
   - Add an Interruptvector Bean to your project
   - Initialize the InterruptVector Bean with the appropriate InterruptVector name
   - Specify the name of your interrupt function in the "ISR name" edit box.
 
Also if you are using your own interrupt function I assume you are programming one of the devices on the CPU yourself.
I would than also recommend you to marked the corresponding resources as used by an external device.
 
This can be done as follows:
  - Open the Bean Inspector for the CPU bean
  - Go to the Used Tab
  - Look for the resource you are programming outside of ProcessorExpert (for instance I/O Port A)
    and toggle its status from "ready for use in PE" to "Used by an external device".
 
I hope this helps.
 
CrasyCat
0 项奖励
回复

643 次查看
Ivand
Contributor I
Cool, it did fix the problem
Many thanks!!
0 项奖励
回复