🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5 Stamp S3 (or M5Dial): Input from console

    PRODUCTS
    1
    1
    848
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sheepDog
      last edited by

      Hello,

      I would like to start a few debug commands via the console. To do this I have to read the first serial port and not block the program.

      The following command does not block, but nothing is read in and the error message "Multiple decode errors occurred: Try checking the baud rate and XTAL frequency setting in menuconfig" appears.

      setvbuf(stdin, NULL, _IONBF, 0);
      c = fgetc(stdin);
      

      I use ESP-IDF 5.1 and the the "M5Dial-UserDemo" as base.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post