2.2.4 Adding Harmony Modules to Project
- Go to MCC Project Graph window, as opened in previous step
- Add BSP Component. On Device Resources, navigate to Board Support Packages (BSPs) and click on + sign next to PIC32CXMTSH Development Board BSP
Add Core Component
- On Device Resources, navigate to Core and click on + sign next to Core
- Click No when prompted for adding FreeRTOS component. This example is a Baremetal project
Add Time Component
- On Device Resources, navigate to System Services and click on + sign next to Time
- Right-Click on TMR dependency and select Satisfiers → TC0 (tc0)
- Click on TC0 component, on Configuration Options set Clock Source to MCK0/128 on Channel 0 so configuration matches the following:
Add G3 MAC RT Component
- On Device Resources, navigate to SmartEnergy → Drivers and click on + sign next to G3 MAC RT
- Right-Click on SPI dependency and select Satisfiers → FLEXCOM1 (flexcom1)
- FLEXCOM1 component is auto-configured when connected to G3 MAC RT component, as seen on the figure:
- Click on G3 MAC RT component, on Configuration Options set Pins and PLC Coupling so configuration matches the following:
- Right-Click on PCOUP dependency and select Satisfiers → PLC PHY Coupling (srv_pcoup)
Add PLC PVDD Monitor Component
- On Device Resources, navigate to SmartEnergy → Services and click on + sign next to PLC PVDD Monitor
- Right-Click on ADC dependency and select Satisfiers → ADC (adc)
- Click on ADC component, on Configuration Options set Prescaler and Channel 1 Options so configuration matches the following:
- Click on PLC PVDD Monitor component, on Configuration Options set Channel 1 so configuration matches the following:
- Add TRNG Component. On Device Resources, navigate to Peripherals and click on + sign next to TRNG
Optional. Add QSPI Memory Support if application requires using it
- On Device Resources, navigate to Drivers → I2C EEPROM and click on + sign next to MEMORY
- Right-Click on MEMORY dependency and select Satisfiers → SST26 (drv_sst26)
- Right-Click on SPI dependency and select Satisfiers → QSPI (qspi)
These components are Autoconfigured, once added to the project they are ready to use
Optional. Add SLCDC Display Support if application requires using it
- On Device Resources, navigate to Graphics → Driver and click on + sign next to SLCDC Driver
- Right-Click on Segmented Display dependency and select Satisfiers → SLCDC PIC32CXMT
These components are Autoconfigured, once added to the project they are ready to use
- At this point all components are added and configured in the project graph