PSV model for interrupts not explicitly declared

Post Reply
bmairs
Posts: 69
Joined: Mon Jul 27, 2009 7:51 pm

PSV model for interrupts not explicitly declared

Post by bmairs » Wed Jan 19, 2011 7:50 pm

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
Posts: 69
Joined: Mon Jul 27, 2009 7:51 pm

Re: PSV model for interrupts not explicitly declared

Post by bmairs » Wed Jan 19, 2011 7:56 pm

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

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Re: PSV model for interrupts not explicitly declared

Post by LubinKerhuel » Tue Feb 15, 2011 10:27 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests