Skip to content

pmezydlo/BBB_PRUSSv2_SM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BBB_PRUSSv2_SM

1.Clone repository:
git clone git@github.com:pmezydlo/BBB_PRUSSv2_SM.git

2.Compile device tree:
dtc -O dtb -I dts -o /lib/firmware/PRU-GPIO-SM-00A0.dtbo -b 0 -@ PRU-GPIO-SM.dts

3.Install DT:
echo PRU-GPIO-SM>/sys/devices/bone_capemgr.9/slots

4.Check DT:
cat /sys/devices/bone_capemgr.9/slots

4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
7: ff:P-O-L Override Board Name,00A0,Override Manuf,PRU-GPIO-SM

5.Build the project:
make

6.Load sm.bin to PRU with sm:
./sm sm.bin (direction) (number of steps) (number of delay cycle)

for example ./sm sm.bin 0 1000 4000000

About

BeagleBone Black - Simple PRUSSv2 driver for stepper motor.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published