CH343G 配合 CH34XSER_MAC.ZIP 1.7 會(huì)導(dǎo)致USB口不能使用。

你好,我使用CH343G來(lái)給ESP32燒錄程序。但是燒錄會(huì)回報(bào)Failed to write to target RAM錯(cuò)誤。搜索結(jié)果表示使用官方驅(qū)動(dòng)可以解決。


我使用http://www.findthetime.net/downloads/CH34XSER_MAC_ZIP.html?確實(shí)可以正常燒錄,但是會(huì)引入一個(gè)比較惡性的bug。CH343G第一次插入U(xiǎn)SB口,或者開(kāi)機(jī)前插入,不會(huì)有任何問(wèn)題。但是拔出以后,該USB口再插就不會(huì)識(shí)別硬件了。換其他USB設(shè)備也不行。


硬件我用自己的板子和官方淘寶店買(mǎi)的CH343適配器(僅連接VIO和3.3V)問(wèn)題一樣,應(yīng)該可排除硬件問(wèn)題。


我的操作系統(tǒng)是Mojave 10.14.6。使用console在系統(tǒng)日志里搜索CH34x,會(huì)返回以下的結(jié)果:



debug08:59:36.106969 -0500kextdentering /Library/Extensions/CH34xVCPDriver.kext

debug08:59:36.107067 -0500kextdentering /Library/Extensions/CH34xVCPDriver.kext/Contents

debug08:59:36.107114 -0500kextdleaving /Library/Extensions/CH34xVCPDriver.kext/Contents

debug08:59:36.107164 -0500kextdleaving /Library/Extensions/CH34xVCPDriver.kext

debug08:59:36.107320 -0500kextdopen(/Library/Extensions/CH34xVCPDriver.kext/Contents/MacOS/CH34xVCPDriver,0x0,0x1b6) = 4

debug08:59:36.107366 -0500kextdopen(/Library/Extensions/CH34xVCPDriver.kext/Contents/MacOS/CH34xVCPDriver,0x0,0x1b6) = 5

debug08:59:36.107538 -0500kextd10339 signing bytes in 4 blob(s) from /Library/Extensions/CH34xVCPDriver.kext/Contents/MacOS/CH34xVCPDriver(x86_64)

debug08:59:36.107600 -0500kextdfailed to fetch /Library/Extensions/CH34xVCPDriver.kext/Contents/_CodeSignature/CodeRequirements-2 error=-10

debug08:59:36.107638 -0500kextdExtracting ticket from bundle: /Library/Extensions/CH34xVCPDriver.kext

debug08:59:36.107690 -0500kextdsuccessfully found stapled ticket for: /Library/Extensions/CH34xVCPDriver.kext

debug08:59:36.139650 -0500kextdopen(/Library/Extensions/CH34xVCPDriver.kext/Contents/Info.plist,0x0,0x1b6) = 4

debug08:59:36.140086 -0500kextdfailed to fetch /Library/Extensions/CH34xVCPDriver.kext/Contents/_CodeSignature/CodeTopDirectory error=-10

debug08:59:36.140708 -0500kextdfailed to fetch /Library/Extensions/CH34xVCPDriver.kext/Contents/_CodeSignature/CodeEntitlements error=-10

debug08:59:36.141739 -0500kextdentering /Library/StagedExtensions/Library/Extensions/CH34xVCPDriver.kext

debug08:59:36.141831 -0500kextdentering /Library/StagedExtensions/Library/Extensions/CH34xVCPDriver.kext/Contents

debug08:59:36.141869 -0500kextdleaving /Library/StagedExtensions/Library/Extensions/CH34xVCPDriver.kext/Contents

debug08:59:36.141901 -0500kextdleaving /Library/StagedExtensions/Library/Extensions/CH34xVCPDriver.kext

debug08:59:36.142111 -0500kextdopen(/Library/StagedExtensions/Library/Extensions/CH34xVCPDriver.kext/Contents/MacOS/CH34xVCPDriver,0x0,0x1b6) = 4

debug08:59:36.142182 -0500kextdopen(/Library/StagedExtensions/Library/Extensions/CH34xVCPDriver.kext/Contents/MacOS/CH34xVCPDriver,0x0,0x1b6) = 5

debug08:59:36.142381 -0500kextd10339 signing bytes in 4 blob(s) from /Library/StagedExtensions/Library/Extensions/CH34xVCPDriver.kext/Contents/MacOS/CH34xVCPDriver(x86_64)

debug08:59:36.142449 -0500kextdfailed to fetch /Library/StagedExtensions/Library/Extensions/CH34xVCPDriver.kext/Contents/_CodeSignature/CodeRequirements-2 error=-10

debug08:59:36.142547 -0500kextdExtracting ticket from bundle: /Library/StagedExtensions/Library/Extensions/CH34xVCPDriver.kext

debug08:59:36.142735 -0500kextdsuccessfully found stapled ticket for: /Library/StagedExtensions/Library/Extensions/CH34xVCPDriver.kext

debug08:59:36.177356 -0500kextdopen(/Library/StagedExtensions/Library/Extensions/CH34xVCPDriver.kext/Contents/Info.plist,0x0,0x1b6) = 4

debug08:59:36.177583 -0500kextdfailed to fetch /Library/StagedExtensions/Library/Extensions/CH34xVCPDriver.kext/Contents/_CodeSignature/CodeTopDirectory error=-10

debug08:59:36.178001 -0500kextdfailed to fetch /Library/StagedExtensions/Library/Extensions/CH34xVCPDriver.kext/Contents/_CodeSignature/CodeEntitlements error=-10


而不能使用的時(shí)候,還會(huì)多以下兩條


debug09:00:30.356210 -0500DockOSErr AEEventImpl::putAttributeDesc(OSType, const AEDesc *)(shas = ["d36608cc1e39f272d10b89eb1287231c9d8cccef;00;00000000;00000000;00000000;0000000000000020;com.apple.app-sandbox.read-write;01;01000004;00000002041f0fa3;01;/users/sundeqing/downloads/ch34xser_mac 3"] result=0

debug09:00:30.356256 -0500DockOSErr AEPutAttributeDesc(AppleEvent *, AEKeyword, const AEDesc *)(shas desc=["d36608cc1e39f272d10b89eb1287231c9d8cccef;00;00000000;00000000;00000000;0000000000000020;com.apple.app-sandbox.read-write;01;01000004;00000002041f0fa3;01;/users/sundeqing/downloads/ch34xser_mac 3"] err=0/noErr



補(bǔ)充一下,剛才另找了一臺(tái)10.15.7的電腦,可以正常工作。

在10.14.6上,使用USB prober和System Information分別查看USB設(shè)備。

USB prober可檢測(cè)到第一次插入,第一次拔出,不可檢測(cè)到第二次插入。

System Information可檢測(cè)到第一次插入,不可檢測(cè)到第一次拔出。即使拔出后,設(shè)備仍然掛在設(shè)備樹(shù)上。


您好,目前未接收到其他客戶有類(lèi)似反饋情況,針對(duì)您在當(dāng)前系統(tǒng)遇到的這個(gè)特殊現(xiàn)象,可聯(lián)系我們工程師在線排查。請(qǐng)按以下技術(shù)聯(lián)系方式與我們溝通:http://www.findthetime.net/services/technical_support.html,撥打“USB轉(zhuǎn)接系列”技術(shù)支持電話。


好的謝謝,我工作時(shí)間嘗試撥打一下。

同一臺(tái)電腦CH340N沒(méi)有問(wèn)題,CH343G有。


回報(bào)一下,沁恒工程師已修復(fù)了這個(gè)BUG,我這邊測(cè)試沒(méi)問(wèn)題,之后會(huì)加到下個(gè)版本發(fā)布。


你好,請(qǐng)問(wèn)這個(gè)問(wèn)題修復(fù)了嗎?最新版本在哪里下載呢?我也遇到了類(lèi)似的問(wèn)題


您好,蘋(píng)果驅(qū)動(dòng)V1.7近期會(huì)更新至官網(wǎng),您可以先發(fā)送郵件到:tech@wch.cn獲取。


這個(gè)問(wèn)題我在我這邊的環(huán)境上依然穩(wěn)定復(fù)現(xiàn),很確定V1.7版本的驅(qū)動(dòng)沒(méi)有修復(fù)該問(wèn)題,下面是我的環(huán)境


筆記本型號(hào):MacBookPro 2015 Mid、2.2 GHz Intel Core i7、16 GB 1600 MHz DDR3、Intel Iris Pro 1536 MB

系統(tǒng)版本:MacOS 10.14.6 Mojave

連接開(kāi)發(fā)板:合宙ESP32C3核心板_帶CH343串口TypeC版本

開(kāi)發(fā)板原理圖:https://cdn.openluat-luatcommunity.openluat.com/attachment/CORE-ESP32-C3設(shè)計(jì)原理圖_V1.2.pdf

現(xiàn)象描述:

a.安裝驅(qū)動(dòng)后不正常的情況:

????1.安裝驅(qū)動(dòng)后關(guān)機(jī)

????2.不插入核心板,然后開(kāi)機(jī)

????3.開(kāi)機(jī)后首次插入核心板

????4.ls /dev/cu.* ?-> ?/dev/cu.Bluetooth-Incoming-Port/dev/cu.usbmodem544C0009671(發(fā)現(xiàn)并不是正確的設(shè)備名稱(chēng))

????5.拔掉核心板再重新插入

????6.ls /dev/cu.* ?-> ?/dev/cu.Bluetooth-Incoming-Port(發(fā)現(xiàn)/dev節(jié)點(diǎn)下沒(méi)有出現(xiàn)串口設(shè)備)

????7.后面不管怎么插拔,/dev下面都不會(huì)再有串口設(shè)備,不管是正確名字的,還是錯(cuò)誤名字的;系統(tǒng)報(bào)告里面有兩個(gè)USB Single Serial,下面是此時(shí)USB設(shè)備樹(shù)詳情:

????????USB 3.0 總線:

????????? 主控制器驅(qū)動(dòng)器:AppleUSBXHCILPTH

????????? PCI 設(shè)備 ID:0x8c31?

????????? PCI 修訂版 ID:0x0005?

????????? PCI 供應(yīng)商 ID:0x8086?

????????Apple 內(nèi)置鍵盤(pán)/觸控板:

????????? 產(chǎn)品 ID:0x0274

????????? 廠商 ID:0x05ac (Apple Inc.)

????????? 版本:6.24

????????? 序列號(hào):D3H82720E61G

????????? 速度:最高可達(dá) 12 Mb/秒

????????? 制造商:Apple Inc.

????????? 位置 ID:0x14400000 / 4

????????? 可用電流 (mA):500

????????? 所需電流 (mA):500

????????? 額外的操作電流 (mA):0

????????? 內(nèi)建:是

????????藍(lán)牙 USB 主機(jī)控制器:

????????? 產(chǎn)品 ID:0x8290

????????? 廠商 ID:0x05ac (Apple Inc.)

????????? 版本:1.68

????????? 制造商:Broadcom Corp.

????????? 位置 ID:0x14300000

????????USB Single Serial:

????????? 產(chǎn)品 ID:0x55d3

????????? 廠商 ID:0x1a86

????????? 版本:4.43

????????? 序列號(hào):544C000967

????????? 位置 ID:0x14100000

????????USB Single Serial:

????????? 產(chǎn)品 ID:0x55d3

????????? 廠商 ID:0x1a86

????????? 版本:4.43

????????? 序列號(hào):544C000967

????????? 位置 ID:0x14100000

b.安裝驅(qū)動(dòng)后插入設(shè)備開(kāi)機(jī)正常的情況:

????1.安裝驅(qū)動(dòng)后關(guān)機(jī)

????2.插入核心板然后開(kāi)機(jī)

????3.ls /dev/cu.* ?-> ?/dev/cu.Bluetooth-Incoming-Port/dev/cu.wchusbserial544C0009671(正確的設(shè)備名稱(chēng))

????4.此時(shí)USB總線設(shè)備樹(shù)

????????USB 3.0 總線:

????????? 主控制器驅(qū)動(dòng)器:AppleUSBXHCILPTH

????????? PCI 設(shè)備 ID:0x8c31?

????????? PCI 修訂版 ID:0x0005?

????????? PCI 供應(yīng)商 ID:0x8086?

????????內(nèi)置存儲(chǔ)卡閱讀器:

????????? 產(chǎn)品 ID:0x8406

????????? 廠商 ID:0x05ac (Apple Inc.)

????????? 版本:8.20

????????? 序列號(hào):000000000820

????????? 速度:最高可達(dá) 5 Gb/秒

????????? 制造商:Apple

????????? 位置 ID:0x14700000 / 4

????????? 可用電流 (mA):900

????????? 所需電流 (mA):896

????????? 額外的操作電流 (mA):0

????????? 內(nèi)建:是

????????Apple 內(nèi)置鍵盤(pán)/觸控板:

????????? 產(chǎn)品 ID:0x0274

????????? 廠商 ID:0x05ac (Apple Inc.)

????????? 版本:6.24

????????? 序列號(hào):D3H82720E61G

????????? 速度:最高可達(dá) 12 Mb/秒

????????? 制造商:Apple Inc.

????????? 位置 ID:0x14400000 / 2

????????? 可用電流 (mA):500

????????? 所需電流 (mA):500

????????? 額外的操作電流 (mA):0

????????? 內(nèi)建:是

????????藍(lán)牙 USB 主機(jī)控制器:

????????? 產(chǎn)品 ID:0x8290

????????? 廠商 ID:0x05ac (Apple Inc.)

????????? 版本:1.68

????????? 制造商:Broadcom Corp.

????????? 位置 ID:0x14300000

????????USB Single Serial:

????????? 產(chǎn)品 ID:0x55d3

????????? 廠商 ID:0x1a86

????????? 版本:4.43

????????? 序列號(hào):544C000967

????????? 速度:最高可達(dá) 12 Mb/秒

????????? 位置 ID:0x14100000 / 5

????????? 可用電流 (mA):500

????????? 所需電流 (mA):134

????????? 額外的操作電流 (mA):05.拔下再插入核心板

????6.ls /dev/cu.* ?-> ?/dev/cu.Bluetooth-Incoming-Port/dev/cu.usbmodem544C0009671(發(fā)現(xiàn)又變回錯(cuò)誤的名稱(chēng))

????7.再次拔下再插入核心板

????8.ls /dev/cu.* ?-> ?/dev/cu.Bluetooth-Incoming-Port

????9.接下來(lái)不管怎么拔插核心板,都不會(huì)再掛載串口設(shè)備


我的聯(lián)系方式:企鵝544324974,加好友注明來(lái)意


您好,您可對(duì)照安裝說(shuō)明文檔中的操作步驟看下是否仍有問(wèn)題。安裝驅(qū)動(dòng)完成后對(duì)應(yīng)設(shè)備的串口設(shè)備名稱(chēng)為:/dev/tty.wchusbserialxx,具體如下所示:

因CH343可同時(shí)使用VCP和CDC驅(qū)動(dòng),匹配CDC驅(qū)動(dòng)時(shí)串口名為:usbmodemxx,VCP驅(qū)動(dòng)時(shí)如上所示。

當(dāng)不識(shí)別串口的時(shí)候,需看下usb設(shè)備[1a86]:[55d3]是否還存在,這邊安排同事加下您。

image.png


插入設(shè)備然后開(kāi)機(jī),顯示的是/dev/tty.wchusbserialxx名稱(chēng),然后拔掉重新插入,就是usbmodemxx,再插拔串口設(shè)備就沒(méi)法掛載到/dev節(jié)點(diǎn)下了。


好的,您那邊安排下,看看到底是什么問(wèn)題……


icon_rar.gifCH34xVCPDriver.pkg.zip

今天看起來(lái)官網(wǎng)的mac驅(qū)動(dòng)還是停留在回報(bào)bug前2022年1月發(fā)布的1.7版本。

這是FAE在2月發(fā)給我的修正包。我記得當(dāng)時(shí)重啟到Safe Mode然后把舊的驅(qū)動(dòng)kext刪掉。然后進(jìn)正常模式裝一下就好了。


您好,本月會(huì)提交版本更新,版本V1.8,用戶可直接從官網(wǎng)鏈接下載:http://www.findthetime.net/downloads/CH34XSER_MAC_ZIP.html?


該問(wèn)題已在新版驅(qū)動(dòng)中修復(fù),感謝沁恒的工程師在國(guó)慶節(jié)期間,加班幫忙解決問(wèn)題,太感謝了。


只有登錄才能回復(fù),可以選擇微信賬號(hào)登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频