Page 1 of 1

PSV model for interrupts not explicitly declared

Posted: Wed Jan 19, 2011 7:50 pm
by bmairs
With version 3.0 of the C30 compiler a PSV model is necessary for interrupts. If one isn't specified you get warnings like the following:
dsPIC_InputCapture_Interrupt.c: In function '_IC8Interrupt':
dsPIC_InputCapture_Interrupt.c:80: warning: PSV model not specified for '_IC8Interrupt';
assuming 'auto_psv' this may affect latency
Any way this could be fixed? Looks like just setting it to auto_psv would work and then I won't get warnings for every IC channel I'm using.

Re: PSV model for interrupts not explicitly declared

Posted: Wed Jan 19, 2011 7:56 pm
by bmairs
Oh, it also looks like this affects the UART2 interrupts, but I would imagine this affects all interrupts generated by the blockset.

Re: PSV model for interrupts not explicitly declared

Posted: Tue Feb 15, 2011 10:27 pm
by LubinKerhuel
Hi Bryan,

I corrected the problem by addiin the PSV model option within the interrupt. (I used the auto_psv option).
Will be realease with the next version.

Anyway, the generated code is Ok despite of this warning.

Thanks for the suggestion.

Lubin