19.7.2 Steps for Porting an MCC Project

  1. Open an latest released existing PIC32CX5109BZ31048 MCC project in MPLABx.
  2. Access the project properties option in MPLABX IDE. From the “default” drop-down list, select Customize.
    Figure 19-55. Customizing Project Properties
  3. Change the Device name to PIC32CX5109BZ36048 and select the respective packs and compiler versions.
  4. Open the MCC by pressing the MCC button available at top in MPLABx and Accept (“Yes”) the project migration confirmation.
  5. Once MCC is opened the DFP will be available for the selected device, can be seen by clicking on the DFP from project graph.
    Note: The DFP updates according to the device selected. If MCC project graph window is not visible or the selected DFP does not match with the device selection, in that case, choose the correct DFP path (see step 6).
  6. In PIC32CX-BZ36 device family, the SoC PIC32CX5109BZ36048 device have additional power configuration modes.

    1. To configure the other PMU mode, such as BUCK-PWM and BUCK-PSM Modes, Select the required mode in device support components, using drop down menu select the modes as shown.
      Figure 19-56. Selecting the MLDO Mode
      Figure 19-57. Selecting the BUCK-PWM Mode
      Figure 19-58. Selecting the BUCK-PSM Mode
  7. Save MCC configuration and enable Force update on All option (by right clicking onto the Project Resources Tab). Press Generate.
  8. Do not merge all the code differences displayed in the merge window. Do not merge the application files or the freeRTOS_hook.c file. If any specific changes are required, merge only those necessary parts. Avoid merging unrelated code to prevent potential build errors.

  9. Build and Flash the Project onto the device.