what should be the size of interrupt function

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

what should be the size of interrupt function

1,466 Views
rahulkrishna
Contributor IV

Hi all,

 

I am using the Xgate CAN driver library. I modified the receive interrupt function, could someone please tell me what is the limit of lines that i can write for the interrupt function. I found that if i increase the number of lines of interrupt the behavior seems to be significantly different. The debugger does not break in the interrupt but the variables in the interrupt increase. please help.

Labels (1)
3 Replies

1,360 Views
kef2
Senior Contributor V

Number of XGATE code lines is not limited. From XGATE you can access up to 30k of flash and up to 32k of RAM. XGATE code may run from both flash and RAM. Is your CW license OK? Don't you get message about 512 bytes of XGATE code limit? If not, then perhaps some XGATE error is triggered and code just doesn't run - of course you'll have problems catching this in debugger. Hard to give better advice without looking at code.

0 Kudos
Reply

1,360 Views
rahulkrishna
Contributor IV

No i am not saying about the complete Xgate code iam only saying about the interrupt function like CAN receive interrupt funciton, how big it can be so that it does not block the new messages.

0 Kudos
Reply

1,360 Views
kef2
Senior Contributor V

Single XGATE interrupt function can take all availbale XGATE code space.