ch9434是不是不支持64位系統(tǒng),在64位linux系統(tǒng)調試ch9434失敗

ch9434是不是不支持64位系統(tǒng),在64位linux系統(tǒng)調試ch9434失敗,minicom可以連接/dev/ttyWCH0,但收發(fā)數(shù)據(jù)失敗

您好,驅動程序和設備支持使用在64位操作系統(tǒng)上,基于您的問題,建議檢查下SPI通訊接口以及中斷功能是否正常,可以按如下博客鏈接排查:https://blog.csdn.net/WCH_TechGroup/article/details/128288016?


[????1.430561]?ch9434:?SPI?driver?for?spi?to?serial?chip?ch9434,?etc.
[????1.430569]?ch9434:?V1.00?On?2020.06.17
[????1.463038]?ch943x_spi?spi0.0:?gpio_to_irq:-22,?spi->irq:382
[????1.463046]?ch943x_spi?spi0.0:?setup?8?bpw,?cpol,?cpha,?3000000Hz
[????1.463099]?ch943x_spi?spi0.0:?setup?mode?3,?8?bits/w,?3000000?Hz?max?-->?0
[????1.463109]?ch943x_spi?spi0.0:?change?to?SPI?MODE?3!
[????1.464669]?ch943x_spi?spi0.0:?ch943x_port_write?-?reg:0x81,?val:0x?0
[????1.464868]?ch943x_spi?spi0.0:?ch943x_port_write?-?reg:0x84,?val:0x?0
[????1.465114]?ch943x_spi?spi0.0:?ch943x_port_read?-?reg:0x?6,?val:0x?0
[????1.465405]?ch943x_spi?spi0.0:?******Uart?0?SPR?Test?Start******
[????1.465630]?ch943x_spi?spi0.0:?ch943x_port_write?-?reg:0x87,?val:0x55
[????1.465891]?ch943x_spi?spi0.0:?ch943x_port_read?-?reg:0x?7,?val:0x55
[????1.466120]?ch943x_spi?spi0.0:?ch943x_port_write?-?reg:0x87,?val:0x66
[????1.466340]?ch943x_spi?spi0.0:?ch943x_port_read?-?reg:0x?7,?val:0x66
[????1.466346]?ch943x_spi?spi0.0:?******Uart?0?SPR?Test?End******
[????1.466558]?ch943x_spi?spi0.0:?ch943x_port_write?-?reg:0x91,?val:0x?0
[????1.466753]?ch943x_spi?spi0.0:?ch943x_port_write?-?reg:0x94,?val:0x?0
[????1.466967]?ch943x_spi?spi0.0:?ch943x_port_read?-?reg:0x16,?val:0x?0
[????1.467260]?ch943x_spi?spi0.0:?******Uart?1?SPR?Test?Start******
[????1.467485]?ch943x_spi?spi0.0:?ch943x_port_write?-?reg:0x97,?val:0x55
[????1.467694]?ch943x_spi?spi0.0:?ch943x_port_read?-?reg:0x17,?val:0x55
[????1.467878]?ch943x_spi?spi0.0:?ch943x_port_write?-?reg:0x97,?val:0x66
[????1.468035]?ch943x_spi?spi0.0:?ch943x_port_read?-?reg:0x17,?val:0x66
[????1.468041]?ch943x_spi?spi0.0:?******Uart?1?SPR?Test?End******
[????1.468203]?ch943x_spi?spi0.0:?ch943x_port_write?-?reg:0xa1,?val:0x?0
[????1.468369]?ch943x_spi?spi0.0:?ch943x_port_write?-?reg:0xa4,?val:0x?0
[????1.468567]?ch943x_spi?spi0.0:?ch943x_port_read?-?reg:0x26,?val:0x?0
[????1.468790]?ch943x_spi?spi0.0:?******Uart?2?SPR?Test?Start******
[????1.468994]?ch943x_spi?spi0.0:?ch943x_port_write?-?reg:0xa7,?val:0x55
[????1.469201]?ch943x_spi?spi0.0:?ch943x_port_read?-?reg:0x27,?val:0x55
[????1.469371]?ch943x_spi?spi0.0:?ch943x_port_write?-?reg:0xa7,?val:0x66
[????1.469538]?ch943x_spi?spi0.0:?ch943x_port_read?-?reg:0x27,?val:0x66
[????1.469545]?ch943x_spi?spi0.0:?******Uart?2?SPR?Test?End******
[????1.469726]?ch943x_spi?spi0.0:?ch943x_port_write?-?reg:0xb1,?val:0x?0
[????1.469952]?ch943x_spi?spi0.0:?ch943x_port_write?-?reg:0xb4,?val:0x?0
[????1.470146]?ch943x_spi?spi0.0:?ch943x_port_read?-?reg:0x36,?val:0x?0
[????1.470376]?ch943x_spi?spi0.0:?******Uart?3?SPR?Test?Start******
[????1.470558]?ch943x_spi?spi0.0:?ch943x_port_write?-?reg:0xb7,?val:0x55
[????1.470735]?ch943x_spi?spi0.0:?ch943x_port_read?-?reg:0x37,?val:0x55
[????1.470948]?ch943x_spi?spi0.0:?ch943x_port_write?-?reg:0xb7,?val:0x66
[????1.471214]?ch943x_spi?spi0.0:?ch943x_port_read?-?reg:0x37,?val:0x66
[????1.471220]?ch943x_spi?spi0.0:?******Uart?3?SPR?Test?End******
[????1.471422]?ch943x_spi?spi0.0:?ch943x_port_write?-?reg:0xc8,?val:0xcd
[????1.471591]?ch943x_spi?spi0.0:?ch943x_probe?-?devm_request_threaded_irq?=382?result:0



開機啟動測試正常,但minicom發(fā)送數(shù)據(jù)沒反應


還是不行


您好,如上信息中提示:

gpio_to_irq:-22,?spi->irq:382

中斷的gpio配置是有問題的,可檢查下這個配置,并按照博客內容單獨驗證中斷功能。

注:串口收發(fā)等功能依賴中斷功能。


好的謝謝,正常應該是什么樣子的信息?


可以參考博客中的正常中斷功能演示,GPIO可以從dts獲取也可以代碼指定,確保使用的GPIO和硬件上能對應起來。且此GPIO支持外部中斷功能。


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

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