RDK X3 2.0 (系统使用2.0.0) 运行 SPI回环测试 test_spi.py 无法获取发送数据

用户您好,请详细描述您所遇到的问题:

  1. 系统软件版本: 2.0.0
  2. 使用 SPI bus号 2 , 片选0 透过 ls /dev/spi* 显示 /dev/spidev2.0
  3. 发送 [0x55,0xAA]
  4. 用尼龙线连接 GPIO 19 21 (物理编号),线已经换了好几根都一样的结果
  5. 收到的data 为 0xFF 0xFF

附件为运行 srpi-config 显示所有外设 spi2 i2s1 i2s0 serial3 i2c0 为 okay

转而 使用 wiringpi Python库

安装了wiringpi-2.60.1版本

在wiringpi.WringPiSetupGpio 这个地方程序退出,debug 信息 为:

Unable to determine board revision from /proc/cpuinfo

-> NO “hardware” line

-> you 'd best google the error to find out why

微信图片_20240109143340.jpg