From nobody Wed Sep 14 15:14:54 2022 X-Original-To: hackers@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 4MSP5x4RSYz4cLwy for ; Wed, 14 Sep 2022 15:15:17 +0000 (UTC) (envelope-from cederom@tlen.pl) Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MSP5v72nfz47xs for ; Wed, 14 Sep 2022 15:15:15 +0000 (UTC) (envelope-from cederom@tlen.pl) Received: (wp-smtpd smtp.tlen.pl 11119 invoked from network); 14 Sep 2022 17:15:07 +0200 Received: from mail-yb1-f178.google.com (cederom@tlen.pl@[209.85.219.178]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 14 Sep 2022 17:15:07 +0200 Received: by mail-yb1-f178.google.com with SMTP id e187so17023848ybh.10; Wed, 14 Sep 2022 08:15:07 -0700 (PDT) X-Gm-Message-State: ACrzQf3R/hDo3qEJ3C3+L7g3ObJ8bmKyPlcJcJEe/RP1J0D4XrlbJngJ FH/J0JjbVUxXG6dfYtkwHF9ewm5ZUDpJFUMc1+8= X-Google-Smtp-Source: AMsMyM4agS1rOuWm8PkbHBmBSvEhB9lmccHuScGRrO3nWOnCVvHbjhm4U1gbgxvipLoyi5V/mJseQ8SBqbCDFOHR/d0= X-Received: by 2002:a25:6d04:0:b0:6b0:1f0b:dccd with SMTP id i4-20020a256d04000000b006b01f0bdccdmr1451908ybc.359.1663168506114; Wed, 14 Sep 2022 08:15:06 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: CeDeROM Date: Wed, 14 Sep 2022 17:14:54 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: USB chip CH9102F To: Daniel Braniss Cc: freebsd-hackers , "usb@freebsd.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-WP-MailID: 08ba9dc942212483fd917d6b70837608 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0W00001 [IcJd] X-Rspamd-Queue-Id: 4MSP5v72nfz47xs X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of cederom@tlen.pl designates 193.222.135.158 as permitted sender) smtp.mailfrom=cederom@tlen.pl X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip4:193.222.135.0/24]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_NONE(0.00)[209.85.219.178:received]; MLMMJ_DEST(0.00)[hackers@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:31080, ipnet:193.222.135.0/24, country:PL]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_THREE(0.00)[3]; PREVIOUSLY_DELIVERED(0.00)[hackers@freebsd.org]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[tlen.pl]; RWL_MAILSPIKE_POSSIBLE(0.00)[193.222.135.158:from] X-ThisMailContainsUnwantedMimeParts: N On Wed, Sep 14, 2022 at 3:43 PM Daniel Braniss wrote: > Hi, > is there/will there be any support for this chip? CH9102F. > > there is a driver for linux and windows, but event though it sort of work= s on FreeBSD, > the magic needed to flash the firmware on newer esp32=E2=80=99s is not wo= rking. I also bought USB-C based UART-to-USB adapter from Waveshare with CH343G chip and use it for ESP32 flashing. This chip is a bit tricky and I have noticed it is less reliable for initial flashing on a custom ESP32 board (boot mode selection using RTS/CTS pins). It sometimes fails, while older USB-UART converters works fine. What are your problems exactly? Are you sure this is not the custom hardware design issue? Do you have Reset and BootSel pins on your board that you can trigger by hand in order to help USB-UART cable? What is your magic that you need to do in order to flash the chip successfu= lly? Does standard operations (UART CLI) work as expected? Did you take a look at man stty and use stty crtscts / stty -crtscts to see if that fixes anything? -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info