Hello! I already ended Zigbee Boot Camp hands-on(Hands on : Forming and Joining and Hands on : Sending on/off commands) for brd4182a. It's worked!
Now I want to make zigbee application for my custom radio board with EFR32MG22 chip.
Many hands-on said that the best way to make Zigbee app for custom boards is use Example code and change it for own board. But I met some problems in this method.
Zigbee example needs several pins wich absent on my board. For example UART pins, PTI pins etc.
Therefore when I build the project I get undeclared pins.
To find some manuals or hands-on for this theme is complicated.
Many of forum questions for this theme is unanswered.
USART is required?
Do you have some hands-on for this theme?
Discussion Forums
ZigBee and Thread
Unanswered
I saw you use the EFR32mg22c224f512im40 which is the same part number as the brd4182a used. you can refer to the brd4182a project to configure the peripherals.
0
JasonHou,
" you can refer to the brd4182a project to configure the peripherals." For right configuration for my board I should delete all excess pins from brd4182a connfig file, wich absent on my board. But If I do this the project can's build.
Here the difference between my board simplest configuration and brd4182a ZigbeeMinimal configuration:
So, how I can delete PTI pins from the Zigbee Minimal project, but avoid configuration errors?
0
Basically, you can disable PTI in hwconf to avoid compiling issue.
0
YK
When I disable PTI in hwconf , I get 'error: 'BSP_PTI_DFRAME_PIN' undeclared'
I changed example Z3Switch hwconf file for my custom board.
0
Do you disable PTI in “DefaultMode Peripherals” tab in hwconf?
0
YK, yes. Thank you. It's helped me. But it it still not obvious. Project is compiling.
Could you please say me how I can change install code and EUI of device without USART and PTI (Because I don't have it on my custom board) ?
Can I just set install code and EUI somewhere in project?
I know that default install code in Z3Switch example project is FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF. Maybe I can change it somehow?
0
I suppose you can use the following code to write installation code.
Hi, please see AN1089 for instructions on how to set the install code.
0
Gregoire Martin hi. I have read this document AN1089 before. In this document say how to install the install code by using commander and serial interface. I have no serial interface on my custom board. I have no UART/USART and PTI etc. I have only SWD for programming.
There is no function with halCommonSetMfgTokenData name or similar. I use simplicity v5. Could this be a reason ?
0
Hi Georgy,
You can use halCommonSetMfgToken to set the values of manufacturing tokens. Note however that setting manufacturing tokens such as the install codes and the custom EUI64 are typically done on the production line and are not intended to be done via the application layer code. I would highly recommend that you read our User Guide about how to use manufacturing tokens.
0
@Georgy Olinichenko , halCommonSetMfgTokenData is defined in mfg-token.h. I can use it in my application callback directly without problem.
Zigbee example project for custom board
Hello! I already ended Zigbee Boot Camp hands-on(Hands on : Forming and Joining and Hands on : Sending on/off commands) for brd4182a. It's worked!
Now I want to make zigbee application for my custom radio board with EFR32MG22 chip.
Many hands-on said that the best way to make Zigbee app for custom boards is use Example code and change it for own board. But I met some problems in this method.
Zigbee example needs several pins wich absent on my board. For example UART pins, PTI pins etc.
Therefore when I build the project I get undeclared pins.
To find some manuals or hands-on for this theme is complicated.
Many of forum questions for this theme is unanswered.
USART is required?
Do you have some hands-on for this theme?
JasonHou,
" you can refer to the brd4182a project to configure the peripherals." For right configuration for my board I should delete all excess pins from brd4182a connfig file, wich absent on my board. But If I do this the project can's build.
Here the difference between my board simplest configuration and brd4182a ZigbeeMinimal configuration:

So, how I can delete PTI pins from the Zigbee Minimal project, but avoid configuration errors?
Basically, you can disable PTI in hwconf to avoid compiling issue.
When I disable PTI in hwconf , I get 'error: 'BSP_PTI_DFRAME_PIN' undeclared'
I changed example Z3Switch hwconf file for my custom board.
Do you disable PTI in “DefaultMode Peripherals” tab in hwconf?
Could you please say me how I can change install code and EUI of device without USART and PTI (Because I don't have it on my custom board) ?
Can I just set install code and EUI somewhere in project?
I know that default install code in Z3Switch example project is FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF. Maybe I can change it somehow?
I suppose you can use the following code to write installation code.
Gregoire Martin hi. I have read this document AN1089 before. In this document say how to install the install code by using commander and serial interface. I have no serial interface on my custom board. I have no UART/USART and PTI etc. I have only SWD for programming.
YK
There is no function with halCommonSetMfgTokenData name or similar. I use simplicity v5. Could this be a reason ?
Hi Georgy,
You can use halCommonSetMfgToken to set the values of manufacturing tokens. Note however that setting manufacturing tokens such as the install codes and the custom EUI64 are typically done on the production line and are not intended to be done via the application layer code. I would highly recommend that you read our User Guide about how to use manufacturing tokens.
@Georgy Olinichenko , halCommonSetMfgTokenData is defined in mfg-token.h. I can use it in my application callback directly without problem.