ch341在linux卡死

系統(tǒng)ubuntu22.04,ch341demo在調(diào)用庫函數(shù)讀取flash時經(jīng)常返回false,甚至卡死。

該芯片在windows時沒有問題。demo的代碼沒有修改過。

gli@venus:~/project/github/ligenxxxx/hdzero-programmer/CH341PAR_LINUX/demo/ch341$?./app?/dev/ch34x_pis0?
Open?device?/dev/ch34x_pis0?succeed,?fd:?3
Driver?version:?V1.3?On?2023.02
Chip?version:?0x32
Vendor?ID:?0x1a86,?Product?ID:?0x5512
Device?operating?has?function?[SPI+I2C+PARALLEL+GPIO].
press?f?to?operate?spi?flash,?e?to?operate?eeprom,
p?to?operate?epp?parport,?m?to?operate?mem?parport,
g?to?operate?gpio?interface,?q?to?quit.
f
FLASH?Test?begin.
CH341?SPI?interface?init?succeed.
Failed?to?read?flash?ID.
press?f?to?operate?spi?flash,?e?to?operate?eeprom,
p?to?operate?epp?parport,?m?to?operate?mem?parport,
g?to?operate?gpio?interface,?q?to?quit.
f
FLASH?Test?begin.
CH341?SPI?interface?init?succeed.
Failed?to?read?flash?ID.
press?f?to?operate?spi?flash,?e?to?operate?eeprom,
p?to?operate?epp?parport,?m?to?operate?mem?parport,
g?to?operate?gpio?interface,?q?to?quit.
f
FLASH?Test?begin.
CH341?SPI?interface?init?succeed.
Failed?to?read?flash?ID.
press?f?to?operate?spi?flash,?e?to?operate?eeprom,
p?to?operate?epp?parport,?m?to?operate?mem?parport,
g?to?operate?gpio?interface,?q?to?quit.
f
FLASH?Test?begin.
CH341?SPI?interface?init?succeed.
Read?flash?ID:?0x1440ef00.
????????Flash?Read:?Addr[0x0]?read?50?bytes?in?0.001?seconds.
Read:
press?f?to?operate?spi?flash,?e?to?operate?eeprom,
p?to?operate?epp?parport,?m?to?operate?mem?parport,
g?to?operate?gpio?interface,?q?to?quit.
f
FLASH?Test?begin.
CH341?SPI?interface?init?succeed.
Failed?to?read?flash?ID.
press?f?to?operate?spi?flash,?e?to?operate?eeprom,
p?to?operate?epp?parport,?m?to?operate?mem?parport,
g?to?operate?gpio?interface,?q?to?quit.
f
FLASH?Test?begin.
CH341?SPI?interface?init?succeed.
Read?flash?ID:?0x1440ef00.
????????Flash?Read:?Addr[0x0]?read?50?bytes?in?0.001?seconds.
Read:?
ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?
Segmentation?fault
00?00?00?00?00?00?00?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?ff?
Failed?to?erase?flash.


您好,請留下郵箱或者發(fā)郵件至:tech@wch.cn,會發(fā)送新的庫給你這邊,再驗證下問題是否存在。


個人信息保護,已隱藏


您好,郵件已發(fā)送,麻煩測試下,有問題隨時溝通。


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

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