Closed lujiex closed 1 week ago
You probably need to register UART VFS first. If UART is used as console output this is done automatically, but otherwise the VFS driver isn't registered to save resources.
You probably need to register UART VFS first. If UART is used as console output this is done automatically, but otherwise the VFS driver isn't registered to save resources.
Thanks, you solved my problem. I called "uart_vfs_dev_register();" before initializing the serial port. After that, it can open normally. The following code is running normally:
Hi @lujiex, if the issue has been resolved, could you please close it as done? Thank you.
Answers checklist.
IDF version.
v5.3
Espressif SoC revision.
ESP32-S3
Operating System used.
Linux
How did you build your project?
Command line with CMake
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32-S3
Power Supply used.
USB
What is the expected behavior?
Open the UART1 normally
What is the actual behavior?
E (00:04:36.496) uartManager: Cannot open UART1 open: No such file or directory
Steps to reproduce.
Set "Channel for console output" to "USB Serial/JTAG Controller" and UART1 will fail to open with the error "Cannot open UART1 open: No such file or directory"
Set Channel for console output to Default: UART0 ", UART1 can be successfully opened, but my serial port console program will be abnormal, "Writing to serial is timing out. Please make sure that your application supports an interactive console and that you have picked the correct console for serial communication.”
The source code in question is as follows:
Debug Logs.
More Information.
No response