This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SWI doesn't post

Hi,

I am trying to post a swi inside a hwi ISR but it says identifier "swiProcBuf" is undefined. Can you please spot the problem.

Following are the lines from .tcf file:

bios.SWI.create("swiProcBuf");
bios.SWI.instance("swiProcBuf").order = 1;
bios.SWI.instance("swiProcBuf").fxn = prog.extern("procBuf");

I am posting SWI this way:

SWI_post(&swiProcBuf);

Thanks for your help.