4.1.7 Project Setup - WINCS MCC H3 Library Configuration
- Open the MPLAB Code Configurator from
Tools>Embedded>MPLAB Code Configurator open/close
- Select the required services from
system services as illustrated below.
- 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.
- Add all auto activated
components except FreeRTOS.
Select the required services and configurations under respective services
- Add all auto activated
components except FreeRTOS.
- 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.
- Open the Pin Configuration from Plugins dropdown>Pin Configuration as illustrated below
- SERCOM Information:
- SERCOM4 is used for the driver communication.
- SERCOM2 is used for host logs.
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. - Click on Generate as
illustrated below to generate the code