Skip to content

Commit a0e29e9

Browse files
committed
document how to read QEP1
1 parent 8b6c083 commit a0e29e9

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

doc/rotary-encoder-eqep-test.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,47 @@ cat /sys/devices/platform/ocp/48304000.epwmss/48304180.eqep/position
5555
```
5656

5757
### TODO: implement in corresponding methods in `Encoder.py`
58+
59+
60+
### Read QEP1
61+
* Updated: 2017-08-31
62+
* I was able to enable QEP1 with the following:
63+
64+
#### /boot/uEnv.txt
65+
```
66+
uname_r=4.9.35-ti-r44
67+
enable_uboot_overlays=1
68+
disable_uboot_overlay_video=1
69+
cmdline=coherent_pool=1M net.ifnames=0 cape_universal=enable
70+
cape_enable=bone_capemgr.enable_partno=cape-universala
71+
```
72+
73+
#### Read QEP1:
74+
```
75+
$ config-pin P8.33 qep
76+
$ config-pin P8.35 qep
77+
$ cat /sys/devices/platform/ocp/ocp\:P8_33_pinmux/state
78+
qep
79+
$ cat /sys/devices/platform/ocp/ocp\:P8_35_pinmux/state
80+
qep
81+
$ cat /sys/devices/platform/ocp/48302000.epwmss/48302180.eqep/position
82+
0
83+
```
84+
85+
#### Version info:
86+
```
87+
$ sudo /opt/scripts/tools/version.sh
88+
git:/opt/scripts/:[2ce750d881941c5189db9e189af90517e11c079f]
89+
eeprom:[A335BNLT000C3014BBBK1316]
90+
dogtag:[BeagleBoard.org Debian Image 2017-06-18]
91+
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot
92+
2017.09-rc2-00002-g7c9353]
93+
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2017.09-rc2-00002-g84a7f2]
94+
kernel:[4.9.35-ti-r44]
95+
nodejs:[v4.8.4]
96+
uboot_overlay_options:[enable_uboot_overlays=1]
97+
uboot_overlay_options:[disable_uboot_overlay_video=1]
98+
pkg:[bb-cape-overlays]:[4.4.20170728.0-0rcnee1~jessie+20170728]
99+
pkg:[bb-wl18xx-firmware]:[1.20170612-0rcnee0~jessie+20170612]
100+
WARNING:pkg:[firmware-ti-connectivity]:[NOT_INSTALLED]
101+
```

0 commit comments

Comments
 (0)