|
1 |
| -# CHIP BL702 Lighting App Example |
| 1 | +# CHIP BL70X Lighting App Example |
2 | 2 |
|
3 |
| -## Supported Hardware |
| 3 | +BL70X is highly integrated BLE and IEEE 802.15.4 combo chip for IoT |
| 4 | +applications, and BL702 is a general name for BL70X family. |
4 | 5 |
|
5 |
| -Current supported develop boards: |
| 6 | +This example is powered by BL706 and functions as a Thread light bulb device |
| 7 | +type, with on/off, level and color capabilities. The steps were verified with |
| 8 | +following boards: |
6 | 9 |
|
7 |
| -- BL702-IoT-DVK |
8 |
| -- BL706-IoT-DVK |
9 |
| -- BL706-NIGHT-LIGHT |
10 |
| - > Note, please make sure both of flash and `PSRAM` shipped with develop |
11 |
| - > board/device are at lease 2MB. |
| 10 | + - BL706-IoT-DVK |
| 11 | + - BL706-NIGHT-LIGHT |
12 | 12 |
|
13 | 13 | ## Build
|
14 | 14 |
|
@@ -49,51 +49,57 @@ Current supported develop boards:
|
49 | 49 | ./scripts/examples/gn_bouffalolab_example.sh lighting-app out/debug BL706-IoT-DVK
|
50 | 50 | ```
|
51 | 51 |
|
52 |
| - - Build lighting-app for board BL702-IOT-DVK module_type is |
53 |
| - `BL706C-22` by default. Please execute the following command to |
54 |
| - build lighting-app for BL702-IoT-DVK with module `BL702` |
55 |
| - |
56 |
| - ```shell |
57 |
| - ./scripts/examples/gn_bouffalolab_example.sh lighting-app out/debug BL702-IoT-DVK module_type="BL702" |
58 |
| - ``` |
59 |
| - |
60 | 52 | - Build lighting-app for board BL706-NIGHT-LIGHT
|
61 | 53 |
|
62 |
| - ```shell |
63 |
| - ./scripts/examples/gn_bouffalolab_example.sh lighting-app out/debug BL706-NIGHT-LIGHT module_type="BL702" |
64 |
| - ``` |
65 |
| - |
66 |
| - > Note, please check which module is used on the board. |
| 54 | + ```shell |
| 55 | + ./scripts/examples/gn_bouffalolab_example.sh lighting-app out/debug BL706-NIGHT-LIGHT |
| 56 | + ``` |
67 | 57 |
|
68 |
| - - With UART shell command support: |
| 58 | + - With UART shell command enabled: |
69 | 59 |
|
70 | 60 | ```shell
|
71 | 61 | ./scripts/examples/gn_bouffalolab_example.sh lighting-app out/debug BL706-IoT-DVK chip_build_libshell=true
|
72 | 62 | ```
|
73 | 63 |
|
74 |
| - - With pigweed RPC support: |
| 64 | + - With pigweed RPC enabled: |
75 | 65 | ```shell
|
76 | 66 | ./scripts/examples/gn_bouffalolab_example.sh lighting-app out/debug BL706-IoT-DVK 'import("//with_pw_rpc.gni")'
|
77 | 67 | ```
|
78 | 68 | > Note, UART shell command and pigweed RPC can not build together.
|
79 | 69 |
|
80 | 70 | - Build with `build_examples.py`
|
81 | 71 |
|
82 |
| - - Build for BL702-IoT-DVK, BL706-IoT-DVK and BL706-NIGHT-LIGHT as |
83 |
| - following commands. |
| 72 | + - Build for BL706-IoT-DVK and BL706-NIGHT-LIGHT as following commands. |
84 | 73 |
|
85 | 74 | ```shell
|
86 |
| - ./scripts/build/build_examples.py --target bouffalolab-BL702-IoT-DVK-light build |
87 | 75 | ./scripts/build/build_examples.py --target bouffalolab-BL706-IoT-DVK-BL706C-22-light build
|
88 | 76 | ./scripts/build/build_examples.py --target bouffalolab-BL706-NIGHT-LIGHT-light build
|
89 | 77 | ```
|
90 | 78 |
|
91 |
| - - Build with pigweed RPC support as following commands. |
| 79 | + - Build with pigweed RPC enabled as following commands. |
92 | 80 | ```shell
|
93 |
| - ./scripts/build/build_examples.py --target bouffalolab-BL702-IoT-DVK-light-rpc build |
94 | 81 | ./scripts/build/build_examples.py --target bouffalolab-BL706-IoT-DVK-BL706C-22-light-rpc build
|
95 | 82 | ```
|
96 | 83 |
|
| 84 | +- Build options |
| 85 | + |
| 86 | + - Build options list There are some build options for function and debug |
| 87 | + purpose as below. |
| 88 | + - `chip_build_libshell`, whether to enable shell command line. It is |
| 89 | + set to false by default. |
| 90 | + - `baudrate`, UART baudrate for log output or shell command line. |
| 91 | + - `enable_psram`, whether to enable `PSRAM`. It is set to true by |
| 92 | + default. |
| 93 | + - How to use Before using these build options, please check whether they |
| 94 | + are available to configure in BUILD.gn file under example application |
| 95 | + folder. |
| 96 | + - build with `build_examples.py` Modify value of build options in |
| 97 | + BUILD.gn file under example application folder. |
| 98 | + - build with gn_bouffalolab_example.sh Input build options, such as |
| 99 | + ``` |
| 100 | + ./scripts/examples/gn_bouffalolab_example.sh lighting-app out/debug BL706-IoT-DVK chip_build_libshell=true |
| 101 | + ``` |
| 102 | + |
97 | 103 | - Download image
|
98 | 104 |
|
99 | 105 | - Using script `chip-bl702-lighting-example.flash.py`.
|
|
0 commit comments