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: boards/telink/tl3218/doc/index.rst
+40
Original file line number
Diff line number
Diff line change
@@ -144,6 +144,46 @@ Serial Port
144
144
The TL3218 SoC has 1 UART. The Zephyr console output is assigned to UART0.
145
145
The default settings are 115200 8N1.
146
146
147
+
USB COM Port (ACM) as Serial Port Configuration
148
+
-----------------------------------------------
149
+
150
+
To use the USB COM port (ACM) instead of UART, follow these steps:
151
+
152
+
1. Add the following configuration to your project:
153
+
154
+
.. code-block:: none
155
+
CONFIG_LOG=y
156
+
CONFIG_USB_DEVICE_STACK=y
157
+
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
158
+
CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF=y
159
+
2. Include the following overlay configuration:
160
+
161
+
.. code-block:: dts
162
+
/ {
163
+
chosen {
164
+
zephyr,console = &cdc_acm_uart0;
165
+
zephyr,shell-uart = &cdc_acm_uart0;
166
+
};
167
+
};
168
+
&zephyr_udc0 {
169
+
cdc_acm_uart0: cdc_acm_uart0 {
170
+
compatible = "zephyr,cdc-acm-uart";
171
+
};
172
+
};
173
+
3. Connect the USB cable to your device. A new ACM serial device should appear in your system (e.g., ``/dev/ttyACM0`` on Linux or a COM port on Windows).
174
+
4. Use your preferred terminal application (like ``minicom``, ``screen``, or ``PuTTY``) to connect to the newly detected ACM serial device.
175
+
176
+
5. In your source code, ensure the following header is included and the USB device stack is initialized:
Copy file name to clipboardexpand all lines: boards/telink/tl7218/doc/index.rst
+40
Original file line number
Diff line number
Diff line change
@@ -145,6 +145,46 @@ Serial Port
145
145
The Zephyr console output is assigned to UART0.
146
146
The default settings are 115200 8N1.
147
147
148
+
USB COM Port (ACM) as Serial Port Configuration
149
+
-----------------------------------------------
150
+
151
+
To use the USB COM port (ACM) instead of UART, follow these steps:
152
+
153
+
1. Add the following configuration to your project:
154
+
155
+
.. code-block:: none
156
+
CONFIG_LOG=y
157
+
CONFIG_USB_DEVICE_STACK=y
158
+
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
159
+
CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF=y
160
+
2. Include the following overlay configuration:
161
+
162
+
.. code-block:: dts
163
+
/ {
164
+
chosen {
165
+
zephyr,console = &cdc_acm_uart0;
166
+
zephyr,shell-uart = &cdc_acm_uart0;
167
+
};
168
+
};
169
+
&zephyr_udc0 {
170
+
cdc_acm_uart0: cdc_acm_uart0 {
171
+
compatible = "zephyr,cdc-acm-uart";
172
+
};
173
+
};
174
+
3. Connect the USB cable to your device. A new ACM serial device should appear in your system (e.g., ``/dev/ttyACM0`` on Linux or a COM port on Windows).
175
+
4. Use your preferred terminal application (like ``minicom``, ``screen``, or ``PuTTY``) to connect to the newly detected ACM serial device.
176
+
177
+
5. In your source code, ensure the following header is included and the USB device stack is initialized:
Copy file name to clipboardexpand all lines: boards/telink/tlsr9518adk80d/doc/index.rst
+40
Original file line number
Diff line number
Diff line change
@@ -153,6 +153,46 @@ Serial Port
153
153
The TLSR9518A SoC has 2 UARTs. The Zephyr console output is assigned to UART0.
154
154
The default settings are 115200 8N1.
155
155
156
+
USB COM Port (ACM) as Serial Port Configuration
157
+
-----------------------------------------------
158
+
159
+
To use the USB COM port (ACM) instead of UART, follow these steps:
160
+
161
+
1. Add the following configuration to your project:
162
+
163
+
.. code-block:: none
164
+
CONFIG_LOG=y
165
+
CONFIG_USB_DEVICE_STACK=y
166
+
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
167
+
CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF=y
168
+
2. Include the following overlay configuration:
169
+
170
+
.. code-block:: dts
171
+
/ {
172
+
chosen {
173
+
zephyr,console = &cdc_acm_uart0;
174
+
zephyr,shell-uart = &cdc_acm_uart0;
175
+
};
176
+
};
177
+
&zephyr_udc0 {
178
+
cdc_acm_uart0: cdc_acm_uart0 {
179
+
compatible = "zephyr,cdc-acm-uart";
180
+
};
181
+
};
182
+
3. Connect the USB cable to your device. A new ACM serial device should appear in your system (e.g., ``/dev/ttyACM0`` on Linux or a COM port on Windows).
183
+
4. Use your preferred terminal application (like ``minicom``, ``screen``, or ``PuTTY``) to connect to the newly detected ACM serial device.
184
+
185
+
5. In your source code, ensure the following header is included and the USB device stack is initialized:
Copy file name to clipboardexpand all lines: boards/telink/tlsr9528a/doc/index.rst
+40
Original file line number
Diff line number
Diff line change
@@ -153,6 +153,46 @@ Serial Port
153
153
The TLSR9528A SoC has 2 UARTs. The Zephyr console output is assigned to UART0.
154
154
The default settings are 115200 8N1.
155
155
156
+
USB COM Port (ACM) as Serial Port Configuration
157
+
-----------------------------------------------
158
+
159
+
To use the USB COM port (ACM) instead of UART, follow these steps:
160
+
161
+
1. Add the following configuration to your project:
162
+
163
+
.. code-block:: none
164
+
CONFIG_LOG=y
165
+
CONFIG_USB_DEVICE_STACK=y
166
+
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
167
+
CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF=y
168
+
2. Include the following overlay configuration:
169
+
170
+
.. code-block:: dts
171
+
/ {
172
+
chosen {
173
+
zephyr,console = &cdc_acm_uart0;
174
+
zephyr,shell-uart = &cdc_acm_uart0;
175
+
};
176
+
};
177
+
&zephyr_udc0 {
178
+
cdc_acm_uart0: cdc_acm_uart0 {
179
+
compatible = "zephyr,cdc-acm-uart";
180
+
};
181
+
};
182
+
3. Connect the USB cable to your device. A new ACM serial device should appear in your system (e.g., ``/dev/ttyACM0`` on Linux or a COM port on Windows).
183
+
4. Use your preferred terminal application (like ``minicom``, ``screen``, or ``PuTTY``) to connect to the newly detected ACM serial device.
184
+
185
+
5. In your source code, ensure the following header is included and the USB device stack is initialized:
0 commit comments