1
\$\begingroup\$

I started a new project for a pic 32 (pic32mx470f512l) with MCC.

And now i want to use the function SYSTEMConfigPerformance to optimize the performance of the pic.

It happens that i'm not able to find the library that has it.

The main of my code:

#include "mcc_generated_files/mcc.h"
#include "xc.h"
/*
                         Main application
 */
int main(void)
{
    // initialize the device
    #define GetSystemClock() 60000000 
    SYSTEM_Initialize();
    SYSTEMConfigPerformance(GetSystemClock());
    while (1)
    {
        // Add your application code
        IO_RD5_Toggle();

    }

    return -1;
}

Maybe that function doesn't work with MCC

\$\endgroup\$
2
\$\begingroup\$

Looks like you need PIC32 Peripheral Library

Starting with XC32 V1.40, PIC32MX peripheral support libraries are no longer installed as part of the compiler’s installation. These libraries are now installed as a second setup, after the installation of XC32 compiler.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.