新手入门
- 积分
- 16
- 金钱
- 16
- 注册时间
- 2024-4-10
- 在线时间
- 7 小时
|
1金钱
尝试使用MP135的ADC DMA Buffer功能时,显示sh: write error: Invalid argument。
指令执行如下:
[root@ATK-DLMP135 /sys/devices/platform/soc/48003000.adc/48003000.adc:adc@0/iio:device1/scan_elements]#echo 1000 > "/sys/bus/iio/devices/iio:device1/scan_elements/length"
[root@ATK-DLMP135 /sys/devices/platform/soc/48003000.adc/48003000.adc:adc@0/iio:device1/scan_elements]#echo 1 > "/sys/bus/iio/devices/iio:device1/scan_elements/in_voltage0_en"
[root@ATK-DLMP135 /sys/devices/platform/soc/48003000.adc/48003000.adc:adc@0/iio:device1/scan_elements]# grep "" *
in_voltage0_en:1
in_voltage0_index:0
in_voltage0_type:le:u12/16>>0
[root@ATK-DLMP135 /sys/devices/platform/soc/48003000.adc/48003000.adc:adc@0/iio:device1/scan_elements]#echo 1 > "/sys/bus/iio/devices/iio:device1/buffer/enable"
sh: write error: Invalid argument
设备树和内核用的都是开发板出厂自带版本。
|
|