Open rickblair opened 7 years ago
@rickblair I'm getting the same errors, did you ever solve this issue?
Wow that was a while back. I believe I rolled back to an earlier version of Debian. The way the hardware mapping for GPIO changed between kernel versions.
Sorry I don't have the version info anymore.
I am trying to run the PWM example. I run as root. System is BeagleBoard.org Debian Image 2015-11-12 Bulldog version is latest.
Here is the error: [java] -- listing properties -- [java] First [java] Exception in thread "main" java.lang.RuntimeException: java.io.IOException: No such file or directory [java] at io.silverspoon.bulldog.linux.sysfs.SysFs.echoAndWait(Unknown Source) [java] at io.silverspoon.bulldog.beagleboneblack.sysfs.BBBSysFs.createSlotIfNotExists(Unknown Source) [java] at io.silverspoon.bulldog.beagleboneblack.pwm.BBBPwm.setupImpl(Unknown Source) [java] at io.silverspoon.bulldog.core.pin.AbstractPinFeature.setup(Unknown Source) [java] beagleboneblack.dogtag=BeagleBoard.org Debian Image 2015-11-12 [java] [java] at io.silverspoon.bulldog.core.pin.Pin.activateFeature(Unknown Source) [java] at io.silverspoon.bulldog.core.pin.Pin.as(Unknown Source) [java] at com.honeywell.spsd.deliveryTruck.PWMTest.main(PWMTest.java:20) [java] Caused by: java.io.IOException: No such file or directory [java] at java.io.FileOutputStream.writeBytes(Native Method) [java] at java.io.FileOutputStream.write(FileOutputStream.java:326) [java] at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) [java] at sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:316) [java] at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:149) [java] at java.io.OutputStreamWriter.close(OutputStreamWriter.java:233) [java] at java.io.BufferedWriter.close(BufferedWriter.java:266) [java] ... 7 more [java] Java Result: 1
Here is the code I am trying to run:
import io.silverspoon.bulldog.core.gpio.DigitalOutput; import io.silverspoon.bulldog.core.platform.Board; import io.silverspoon.bulldog.core.platform.Platform; import io.silverspoon.bulldog.core.pwm.Pwm; import io.silverspoon.bulldog.core.pwm.SoftPwm; import io.silverspoon.bulldog.core.util.BulldogUtil; import io.silverspoon.bulldog.beagleboneblack.pwm.; import io.silverspoon.bulldog.beagleboneblack.;
public class PWMTest {
public static void main(String[] args) { final Board board = Platform.createBoard();