what should be the size of interrupt function

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

what should be the size of interrupt function

1,477件の閲覧回数
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.

ラベル(1)
3 返答(返信)

1,371件の閲覧回数
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 件の賞賛
返信

1,371件の閲覧回数
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 件の賞賛
返信

1,371件の閲覧回数
kef2
Senior Contributor V

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