error in nvsconsole exemple on esp32-c6

watchdog40
Posts: 22
Joined: Fri Jun 26, 2026 2:20 pm

error in nvsconsole exemple on esp32-c6

Postby watchdog40 » Thu Jul 23, 2026 3:06 pm

Hello.
I want to test the `nvsconsole` example on an ESP32-C6. I managed to compile and flash the example, but I can't enter any commands into the NVS console. I get the following message:
`nvs> --- Warning: Serial port write timed out. Please ensure your application supports an interactive console and that you have selected the correct console for serial communication.`

I looked it up online, and the solution is:
The fix: run `idf.py menuconfig`, go to **Component config > ESP System Settings > Channel for console output**, and select **USB Serial/JTAG Controller** (or the correct hardware port you are using).

But the **Channel for console output** option isn't in that menu!!

Help!

nopnop2002
Posts: 363
Joined: Thu Oct 03, 2019 10:52 pm
Contact:

Re: error in nvsconsole exemple on esp32-c6

Postby nopnop2002 » Fri Jul 24, 2026 4:16 am

Here is.
Attachments
esp_system_settings.jpg
esp_system_settings.jpg (119.34 KiB) Viewed 82 times

watchdog40
Posts: 22
Joined: Fri Jun 26, 2026 2:20 pm

Re: error in nvsconsole exemple on esp32-c6

Postby watchdog40 » Fri Jul 24, 2026 12:27 pm

Thanks.
Sorry, but I don't have that option on my screen on windows 11!
So, I'm going to check the ESP-IDF versions.

watchdog40
Posts: 22
Joined: Fri Jun 26, 2026 2:20 pm

Re: error in nvsconsole exemple on esp32-c6

Postby watchdog40 » Fri Jul 24, 2026 12:37 pm

on windows11 :
IDF PowerShell Environment
-------------------------
Environment variables set:
IDF_PATH: C:\esp\v6.0.1\esp-idf
IDF_TOOLS_PATH: C:\Espressif\tools
IDF_PYTHON_ENV_PATH: C:\Espressif\tools\python\v6.0.1\venv

Custom commands available:
idf.py - Use this to run IDF commands (e.g., idf.py build)
esptool.py
espefuse.py
espsecure.py
otatool.py
parttool.py

Python environment activated.
You can now use IDF commands and Python tools.


I have same problem under linux mint with the version 6.02

nopnop2002
Posts: 363
Joined: Thu Oct 03, 2019 10:52 pm
Contact:

Re: error in nvsconsole exemple on esp32-c6

Postby nopnop2002 » Fri Jul 24, 2026 11:42 pm

I have same problem under linux mint with the version 6.02
As of ESP-IDF V6, this item has been moved to Component config > ESP-STDOUT.
Attachments
ESP-STDOUT-1.jpg
ESP-STDOUT-1.jpg (125.53 KiB) Viewed 61 times
ESP-STDOUT.jpg
ESP-STDOUT.jpg (71.84 KiB) Viewed 66 times

watchdog40
Posts: 22
Joined: Fri Jun 26, 2026 2:20 pm

Re: error in nvsconsole exemple on esp32-c6

Postby watchdog40 » Sat Jul 25, 2026 12:43 pm

Thanks a lot. I modified the option to set it,
USB Serial/JTAG Controller
and I had to add
#define CONFIG_ESP_CONSOLE_UART_BAUDRATE 115200

to fix a compilation error.

But I'm still getting the same error :

NVS Console Example
-------------------
Type 'help' to get the list of commands.
Use UP/DOWN arrows to navigate through command history.
Press TAB when typing command name to auto-complete.
Press Ctrl+C to exit the console.


Your terminal application does not support escape sequences.
Line editing and history features are disabled.
On Windows, try using Windows Terminal or Putty instead.

nvs> --- Warning: 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.

watchdog40
Posts: 22
Joined: Fri Jun 26, 2026 2:20 pm

Re: error in nvsconsole exemple on esp32-c6

Postby watchdog40 » Sun Jul 26, 2026 2:22 pm

I made several changes, checking each time whether the option update had actually been applied.
I keep getting the same message, and strangely enough, when I go back into the menu, the option has reverted to the default value: UART0.

RathiSonika
Espressif staff
Espressif staff
Posts: 30
Joined: Thu Jun 22, 2023 2:58 pm

Re: error in nvsconsole exemple on esp32-c6

Postby RathiSonika » Mon Jul 27, 2026 12:15 pm

Looking at the nvs_console example, initialize_console_peripheral() always sets up UART, even if you select USB Serial/JTAG in menuconfig. So that menu option alone does not switch the interactive console to USB — the example needs a fix for that (I'll will create fix for this).

For now, please use the UART console path:
1. Keep Channel for console output as Default: UART0
2. Connect to the board’s USB-UART port (not the native USB Serial/JTAG port, if your board has two)
3. Run idf.py -p PORT flash monitor on that port

watchdog40
Posts: 22
Joined: Fri Jun 26, 2026 2:20 pm

Re: error in nvsconsole exemple on esp32-c6

Postby watchdog40 » Mon Jul 27, 2026 2:23 pm

Thank you for your reply.
That's not a problem; I'll examine the other examples and functions of the ESP32-C6.

Who is online

Users browsing this forum: ChatGPT-User and 2 guests