PE overrides the interrupt vector table

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

PE overrides the interrupt vector table

2,705 Views
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
Labels (1)
0 Kudos
2 Replies

386 Views
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 Kudos

386 Views
Ivand
Contributor I
Cool, it did fix the problem
Many thanks!!
0 Kudos