From nobody Thu Apr 25 19:51:21 2024 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VQRLw6fTLz5JQbq for ; Thu, 25 Apr 2024 19:51:36 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VQRLw2jpwz4ljh for ; Thu, 25 Apr 2024 19:51:36 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; none Received: by mail-yb1-xb2d.google.com with SMTP id 3f1490d57ef6-de59daab3f3so692976276.3 for ; Thu, 25 Apr 2024 12:51:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1714074694; x=1714679494; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WuLax9rSIl/5/E7gv/Z7Rs6mcofqfKZUB7kQyBBVobU=; b=UMs9ROQ5kJg8u0SN6UKNfTyMset6WQm/mF0ndM1HDYVtgeO6K8vA3PqUo08gVRzzDH zAWL4zFNZ90EpsOe2Oy6t6mc4VBpHilk/r/GGsrCrhnx/dRWEzxJKFZP4UoquROJpv7R fCbDmgx5wHG9wRx9qgXoiUZ+G24qdXFEzUppHHrWv6FYqwqrYDpfmrmN/AAhALKSKjpN daxN9iGJICAe5bzQicT9qyIqvMDG3pR4HzJvTrimZgeg/qG0JVeZrdWCvekRtJF8xOab mhk+7/szO35/lyRVy7TCyApxqoZ7Zt9+Ad+G1LssQ4y4ggLBdaPR9f1V9JHClzz5AMrZ kqXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714074694; x=1714679494; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WuLax9rSIl/5/E7gv/Z7Rs6mcofqfKZUB7kQyBBVobU=; b=CIR0I2rWObRMOh/3wbO/Ec8yGUeJANKA1RD+GVR/oWG5zPO0kKy2kkQvltgu8RfMmj 6PP4HOFjNVk4uiTRv3hN5bsMWZH9LH0SydGIrKCQup1okebl9K+uqxNBGpXhiYMgpVS0 JtgIm1hI9zNRaCUCqEhz/1xuQ5RUq9SowFM1iMiuBiwK69zWeBOEgVb6nM7BWR1e3r3t abfywlakD7qooYqa0hYtcGo3e88o4yGGp1htzcR3eC6ABQ5kiajuqrYgqmbb1976jWP1 Ev4xYC60IwyRu30y+UB65bOg9LDMBVYk1ZEylmHXO5/VItvSWi1hx4IBLd2BUeVJ9b+j X8Jg== X-Gm-Message-State: AOJu0YzsU/Sy/Zyu3zS7Cwv77jTyxv9MRD8ZeJgjalHFD4jGnbCmokwf 9VJFoqPr4zHu7fg2c9V427mfEG3ssR7/7b5R1PhIPe8GgW71juYoc4lc4iUYrp6XmnDwgIsQ60o = X-Google-Smtp-Source: AGHT+IF3T/JBug8PXZb/XnW1z9ZKyr8eednzwazNfyzJgKCQrfqPLYuJPbOj0QED9IRYL029mxT3XA== X-Received: by 2002:a25:84c3:0:b0:dcc:79ab:e51a with SMTP id x3-20020a2584c3000000b00dcc79abe51amr706022ybm.57.1714074694535; Thu, 25 Apr 2024 12:51:34 -0700 (PDT) Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com. [209.85.219.170]) by smtp.gmail.com with ESMTPSA id v69-20020a25c548000000b00dcf27be1d1bsm3944101ybe.28.2024.04.25.12.51.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Apr 2024 12:51:34 -0700 (PDT) Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-de59daab3f3so692964276.3 for ; Thu, 25 Apr 2024 12:51:33 -0700 (PDT) X-Received: by 2002:a25:df48:0:b0:de5:49a4:8a9d with SMTP id w69-20020a25df48000000b00de549a48a9dmr722238ybg.39.1714074693632; Thu, 25 Apr 2024 12:51:33 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 References: <20240425211814.539cccb7@thor.intern.walstatt.dynvpn.de> In-Reply-To: <20240425211814.539cccb7@thor.intern.walstatt.dynvpn.de> From: Tomek CEDRO Date: Thu, 25 Apr 2024 21:51:21 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: serial/ulscom: response timeout using pySerial/esptool.py To: FreeBSD User Cc: FreeBSD CURRENT Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4VQRLw2jpwz4ljh CP2102 are pretty good ones and never let me down :-) Is your UART connection to ESP32 working correctly? Can you see the boot message and whatever happens next in terminal (cu / minicom)? Are RX TX pins not swapped? Power supply okay? Are boards generic devkits of custom hardware? ESP32 in addition to RX TX needs two control lines Reset and Boot that will switch the chip to bootloader / flashing mode. Most USB-to-UART use RTS/CTS lines for that. Are you sure these lines are available on your board and connected to the target correctly? Do you have Reset and Boot buttons on the board so you could trigger bootloader by hand (hold Boot, press and release Reset, device will be in bootloader upload mode, retry esptool flashing now). You can also play with the buttons with active terminal attached (i.e. minicom) to see if they work as expected. Minicom serial terminal is pretty cool as it allows you to watch UART behavior on adapter (un)plug. In minicom you can also enable/disable hardware flow control lines (Ctrl+A O -> Serial Port Setup -> (F) Hardware Flow Control). You can switch that easily and watch the target behavior. If this is the problem you may want to use stty (1) to enable/disable hardware flow control on the port. Can you try with another board? ESP32 has fuses that may permanently disable and/or mess up some hardware features. -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info