FORUM TOPIC · READ ONLY

PSV model for interrupts not explicitly declared

PSV model for interrupts not explicitly declared

Forum : bug reports

3 message(s) · archive en lecture seule

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.
bmairs

Re: PSV model for interrupts not explicitly declared

Oh, it also looks like this affects the UART2 interrupts, but I would imagine this affects all interrupts generated by the blockset.
LubinKerhuel

Re: PSV model for interrupts not explicitly declared

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