ch943x 無(wú)法收發(fā)數(shù)據(jù)

Linux系統(tǒng)CPU+兩塊ch943x擴(kuò)展出8個(gè)串口,現(xiàn)在串口不能收發(fā)數(shù)據(jù),linux系統(tǒng)/proc/interrupts中斷有變化,日志見附件

icon_rar.giflog_tx_debug.zip

  1. 在linux側(cè)向外(PC接的串口調(diào)試工具)發(fā)送數(shù)據(jù)時(shí),驅(qū)動(dòng)打印

[ 1045.394843] ch943x_spi spi0.0: ch943x_ist interrupt enter...

[ 1045.400586] ch943x_spi spi0.0: ch943x_port_read - reg:0x 5, val:0x60

[ 1045.407023] ch943x_spi spi0.0: ch943x_port_read - reg:0x 2, val:0xc1

[ 1045.413373] ch943x_spi spi0.0: ch943x_port_irq no int, quit

[ 1045.419026] ch943x_spi spi0.0: ch943x_port_read - reg:0x15, val:0x60

[ 1045.425464] ch943x_spi spi0.0: ch943x_port_read - reg:0x12, val:0xc1

[ 1045.431812] ch943x_spi spi0.0: ch943x_port_irq no int, quit

[ 1045.437467] ch943x_spi spi0.0: ch943x_port_read - reg:0x25, val:0x60

[ 1045.443902] ch943x_spi spi0.0: ch943x_port_read - reg:0x22, val:0xc1

[ 1045.450252] ch943x_spi spi0.0: ch943x_port_irq no int, quit

[ 1045.455907] ch943x_spi spi0.0: ch943x_port_read - reg:0x35, val:0x60

[ 1045.462345] ch943x_spi spi0.0: ch943x_port_read - reg:0x32, val:0xc1

[ 1045.468692] ch943x_spi spi0.0: ch943x_port_irq no int, quit

[ 1045.474261] ch943x_spi spi0.0: ch943x_ist end



您好,默認(rèn)驅(qū)動(dòng)程序不支持同時(shí)外掛2個(gè)CH9434設(shè)備,您把在用的修改后的驅(qū)動(dòng)程序回傳到我司技術(shù)郵箱:tech@wch.cn 。我們看下是代碼端問題還是其他問題。


icon_rar.gifch9434.zip



已發(fā)送到tech@wch.cn郵箱


1、日志和驅(qū)動(dòng)程序已收到;看設(shè)備樹寫法是用的2個(gè)SPI接口,驅(qū)動(dòng)流程可不用過多改動(dòng);

2、日志未發(fā)現(xiàn)寄存器狀態(tài)異常;

3、可檢查是否為串口應(yīng)用軟件兼容問題,參考GitHub - WCHSoftGroup/tty_uart: linux tty uart application


驅(qū)動(dòng)報(bào)這個(gè)錯(cuò)不要急嗎?看驅(qū)動(dòng)代碼,走到這個(gè)錯(cuò)誤,就退出了,所以收發(fā)函數(shù)也處理不了

[ 1045.450252] ch943x_spi spi0.0: ch943x_port_irq no int, quit


linux 側(cè)沒用其它串口軟件,用的echo命令,?echo 1>/dev/ttyWCH00 執(zhí)行后會(huì)有上述報(bào)錯(cuò)


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

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