6.6 MCC Project creation for RCP with Thread Component
- Create MCC Project for any one of PIC32CXBZ2 devices (WBZ450 /WBZ451 /PIC32CX1012BZ25048 /PIC32CX1012BZ24032)
- OpenMCC Window. By default, the MCC
window will appear as follows.
- Once Project graphis getting displayed for the created project, Double click on the
Thread Stack component.Note:
- CLI is not supported with RCP.
- Thread Stack component will appear in Device Resources only if wireless_thread is cloned in MCC framework path
- Upon selecting the component, the MCC
will auto activate the Thread stack dependent modules. Other inter dependent
component dependencies will be auto activated and shows Popup for getting the
approval. Select “Yes” for all of them.
- The Project Graph will look like.
- Click on Thread stack component and
select RCP available under Device Role option.
- The selection of RCP under Device
Role will trigger the auto activation of Thread USART capability which in turn auto
activate the USART driver. Accept the dependency and auto connection.
- RightClick on TIME module for
selecting the timer source, Select any of the timer.
- Right click onUSART Driver => Go
to Satisfiers => Click on SERCOM0(sercom0)
- Click on SERCOM 0 => Go to
configuration options => Change Receive pinout, Transmitpinout.
- Configure the SERCOM0 system setting
to enable the Direct High Speed inside system Configuration options → Generate Fues
→ DEVCFG1.
- Clickon Generate Tab for Code
generation. Upon code generation, Thread files will be added to the project.
- OnceGeneration completed the header,
source files of Thread will be added under config => driver/thread.
- RTOS task for thread stack will be created tasks.c file and otSysInit () will be called fromSYS_Initialize() function.
- app_user_edits.cfile changes:
selected line should be commented.
- Build and Flash the project into WBZ451/WBZ450.
To Bring up Border Router follow the steps provided in Raspberry Pi setup Procedure and OTBR Network Setup sections.