4.1.7 Project Setup - WINCS MCC H3 Library Configuration

  1. Open the MPLAB Code Configurator from Tools>Embedded>MPLAB Code Configurator open/close
    Figure 4-16. Project Setup: MCC
  2. Select the required services from system services as illustrated below.
    Figure 4-17. System Services
  3. Add the RNWF WINCS WIFI SERVICE from Device Resources>System Service>RNWF WIFI SERVICE, in the RNWF WINCS WIFI SERVICE configuration section select the SAME54X-pro from Advanced Configurations>Host & Device Configurations > Host >SAME54X-pro. Select Wi-Fi device as WINCS02 from Advanced Configurations>Host & Device Configurations >Wi-Fi device>WINCS02, MCC will automatically take SPI as Interface mode for WINCS02 , if not select Interface mode as SPI from Advanced Configurations > Host & Device Configurations > Interface mode > SPI, select the Country Code from Advanced Configurations >Wi-Fi Configurations > Country Code based on the region where product will be used as illustrated below.
    Note: If the user prefers not to utilize the provided SAME54X-pro host support and wishes to configure according to their chosen host, they should select 'None' from the following path: Advanced Configurations > Host & Device Configurations > Host > None. Add manually required components and modified the system services with host dependent functionalities.
    Figure 4-18. WINCS02 WIFI Service
    1. Add all auto activated components except FreeRTOS.

      Select the required services and configurations under respective services

  4. Select the WINCS02 component and in the configuratons options select EIC from WINCS02>Interrupt Source and Enable EIC Channel 7 from WINCS02>Interrupt Source>EIC Channel 7 as illustrated below.
    Figure 4-19. WINCS02 Configuration
  5. Open the Pin Configuration from Plugins dropdown>Pin Configuration as illustrated below
    Figure 4-20. Pin Configuration
  6. SERCOM Information:
    1. SERCOM4 is used for the driver communication.
    2. SERCOM2 is used for host logs.
    In case, the user is using different SERCOM than pre-configured SERCOM in system services, then user need to make appropriate changes of the SERCOM from Device Resources > Libraries > Harmony > Peripherals > Sercom and update the pin configuration.
    For example, Some host use FLEXCOM/SERCOM/PIC32 specific Plib manually add FLEXCOM/SERCOM/PIC32 specific Plib for SPI in MCC graph and it’s dependency including pin configuration.
    Figure 4-21. SERCOM Configuration
  7. Click on Generate as illustrated below to generate the code
    Figure 4-22. Code Generation