Hot!MCC making errors? / Missing prototypes

Author
brightlightbeam
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2016/02/20 08:50:53
  • Location: 0
  • Status: offline
2018/05/17 08:32:37 (permalink)
0

MCC making errors? / Missing prototypes

Hello,
 
I just wanted to generate the basics for a new project with MCC.
I need the three PWM modules and an IOC on RA3 on my PIC12F1572.
Unfortunately MCC seems not to generate the files correctly because I am getting this output messages you find attached.
I downloaded the newest XC8 v1.45 and the MCC is updated to.
In fact the prototypes for:
IOCAF3_SetInterruptHandler(IOCAF3_DefaultInterruptHandler);

IOCAF3_ISR();

are missing in the header files.
Also this causes a problem in the pin_manager.c file:
/**
   IOCAF3 Interrupt Service Routine
*/
void IOCAF3_ISR(void) {
    // Add custom IOCAF3 code
    // Call the interrupt handler for the callback registered at runtime
    if(IOCAF3_InterruptHandler)
    {
        IOCAF3_InterruptHandler();
    }
    IOCAFbits.IOCAF3 = 0;
}

 
Any ideas what could be the problem?
 
Regards Clément
 

Attached Image(s)

#1

4 Replies Related Threads

    NKurzman
    A Guy on the Net
    • Total Posts : 16281
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: MCC making errors? / Missing prototypes 2018/05/17 10:08:01 (permalink)
    0
    This should be in the MCC Sub Fourum.
    The Latest version of MCC?
    Those Appear to be MCC functions, not the compilers.
    Are the Functions missing to, or just the header?
    #2
    Mysil
    Super Member
    • Total Posts : 2880
    • Reward points : 0
    • Joined: 2012/07/01 04:19:50
    • Location: Norway
    • Status: offline
    Re: MCC making errors? / Missing prototypes 2018/05/17 13:51:05 (permalink)
    0
    Hi,
    Some of the possibilities might be:
    Not selecting to use Interrupts for Interrupt On Change for Port A,
    Doing changes in MCC configuration, and then forgetting to click Generate before trying to build the program.
    Not setting up the Interrupt module.
    Bug in MCC is certainly a possibility, MCC do not work by magic, there are scripts that have been prepared by human program developers.
     
    Do you really want the extra overhead of using function call by pointer to the ISR handler for IOC interrupt?
    You may put in the code you need at:  "// Add custom IOCAF3 code "
    and remove the: "IOCAF3_InterruptHandler(); " stuff.
     
       Mysil
    #3
    RISC
    Super Member
    • Total Posts : 5255
    • Reward points : 0
    • Status: offline
    Re: MCC making errors? / Missing prototypes 2018/05/17 15:03:21 (permalink)
    +1 (1)
    Hi,
    Post in the MCC forum : http://www.microchip.com/forums/f293.aspx
    It is attended by some Microchip employees and they review submissions
    Regards
    #4
    PA91
    Starting Member
    • Total Posts : 36
    • Reward points : 0
    • Joined: 2012/09/03 21:45:40
    • Location: 0
    • Status: offline
    Re: MCC making errors? / Missing prototypes 2018/05/28 03:41:32 (permalink)
    +2 (2)
    Hi,
    We have noted down this issue. Fix will be available in the next version.
    Thank you for pointing out.
    #5
    Jump to:
    © 2018 APG vNext Commercial Version 4.5