You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/Compile_and_Develop/How_to_build_project_with_web_page.rst
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -247,6 +247,9 @@ Enter a commit message to describe the changes you have made. Click ``Commit & P
247
247
248
248
Submit Changes (Click to Enlarge)
249
249
250
+
.. note::
251
+
If you want to enable or disable the AT firmware's :ref:`silence mode <silence-mode-usage>`, please refer to the :doc:`How to enable or disable silence mode <How_to_configure_silence_mode>` document.
252
+
250
253
.. _at-wc-action-compile:
251
254
252
255
Step 6. Compile the AT firmware using GitHub Actions
Copy file name to clipboardExpand all lines: docs/en/Compile_and_Develop/How_to_clone_project_and_compile_it.rst
+236-1Lines changed: 236 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,9 +104,244 @@ Select the following configuration options for your {IDF_TARGET_NAME} if it is y
104
104
105
105
- Select the ``Platform name`` for your {IDF_TARGET_NAME}. For example, select ``PLATFORM_{IDF_TARGET_CFG_PREFIX}`` for {IDF_TARGET_NAME} series of products. ``Platform name`` is defined in :component_file:`factory_param_data.csv <customized_partitions/raw_data/factory_param/factory_param_data.csv>`.
106
106
- Select the ``Module name`` for your {IDF_TARGET_NAME}. For example, select ``{IDF_TARGET_COMPILE_MNAME}`` for the {IDF_TARGET_PRODUCT_NAME} module. ``Module name`` is defined in :component_file:`factory_param_data.csv <customized_partitions/raw_data/factory_param/factory_param_data.csv>`.
107
-
- Enable or disable ``silence mode``. If enabled, it will remove some logs and reduce the firmware size. Generally, it should be disabled.
107
+
108
+
.. _esp-at_silence_mode_cfg:
109
+
110
+
- Before selecting to enable or disable silence mode, please read the :doc:`documentation <../Compile_and_Develop/How_to_configure_silence_mode>` to understand silence mode. Generally, it should be disabled.
108
111
- The above three option items will not appear if the file ``build/module_info.json`` exists. So please delete it if you want to reconfigure the module information.
109
112
113
+
.. only:: esp32
114
+
115
+
For example, set ``Platform name`` to ``ESP32``, ``Module name`` to ``WROOM-32``, and enable silence mode as follows:
116
+
117
+
.. code-block:: none
118
+
119
+
$ ./build.py install
120
+
Ready to install ESP-IDF prerequisites..
121
+
122
+
... (more lines of install ESP-IDF prerequisites)
123
+
124
+
Ready to install ESP-AT prerequisites..
125
+
126
+
... (more lines of install ESP-IDF prerequisites)
127
+
128
+
Platform name:
129
+
1. PLATFORM_ESP32
130
+
2. PLATFORM_ESP32C3
131
+
3. PLATFORM_ESP32C2
132
+
4. PLATFORM_ESP32C6
133
+
5. PLATFORM_ESP32S2
134
+
choose(range[1,5]):1
135
+
136
+
Module name:
137
+
1. WROOM-32 (Firmware description: TX:17 RX:16)
138
+
2. WROVER-32 (Firmware description: need PSRAM, TX:22 RX:19)
139
+
3. PICO-D4 (Firmware description: TX:22 RX:19)
140
+
4. SOLO-1 (Firmware description: not recommended for new design, TX:17 RX:16)
Silence mode is a compilation configuration option for ESP-AT firmware that controls the behavior of AT logs (i.e., logs output from the :term:`AT log port`). It is generally recommended to disable this option. While enabling it may reduce the size of the application firmware, you should **prioritize** the following two methods for reducing the firmware size:
12
+
13
+
- In :ref:`python build.py menuconfig <esp-at-project-config>`, navigate to Component config > AT to disable the unnecessary AT features.
14
+
- Refer to the optimization methods outlined in the `Minimizing Binary Size <https://docs.espressif.com/projects/esp-idf/en/latest/{IDF_TARGET_PATH_NAME}/api-guides/performance/size.html#minimizing-binary-size>`_ documentation.
15
+
16
+
.. list-table:: Advantages and Disadvantages of Enabling and Disabling Silence Mode
17
+
:header-rows: 1
18
+
:widths: 25 25 40
19
+
20
+
* - Silence Mode
21
+
- Advantages
22
+
- Disadvantages
23
+
* - Disabled (i.e., set to 0, recommended)
24
+
- Enable logging for some AT functions
25
+
- The size of the application firmware (esp-at.bin) will increase, potentially exceeding the allocated application partition size in the code and resulting in a compilation failure (refer to :ref:`compilation failure log <compilation-failure-log>`).
26
+
* - Enabled (i.e., set to 1, not recommended)
27
+
- Reduced size of the application firmware (esp-at.bin)
28
+
- This mode will remove some AT logs and make the `CONFIG_LOG_DEFAULT_LEVEL <https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/kconfig.html?highlight=log%20output#config-log-default-level>`_ configuration ineffective, preventing AT from outputting logs at the corresponding log levels, which will increase the difficulty of debugging AT functions.
Configure the ``silence mode`` as ``No`` (or ``Yes``) in step 3 Install Environment to disable (or enable) the silence mode.
56
+
57
+
.. _silence-mode-usage-1:
58
+
59
+
- :doc:`Compile ESP-AT Project on the GitHub Webpage <../Compile_and_Develop/How_to_build_project_with_web_page>`
60
+
61
+
Modify the value of ``silence_mode`` in the `esp-at/.github/workflows/build_template_{IDF_TARGET_PATH_NAME}.yml <https://github.com/espressif/esp-at/blob/master/.github/workflows/build_template_{IDF_TARGET_PATH_NAME}.yml>`_ file in step 5.3 Commit changes to enable or disable the silence mode. For example, to enable silence mode, set it to:
- Please flash the compiled AT firmware to the module, and then execute the :ref:`AT+GMR <cmd-GMR>` command to confirm whether the enable or disable of silence mode is successful.
88
+
89
+
- If silence mode is enabled, the response of the AT+GMR command should include ``s-``, for example:
90
+
91
+
::
92
+
93
+
AT+GMR
94
+
AT version:3.5.0.0-dev(s-88b4ea4...
95
+
96
+
... (more lines of version information)
97
+
98
+
OK
99
+
100
+
- If silence mode is disabled, the response of the AT+GMR command should **NOT** include ``s-``, for example:
0 commit comments