Open mingzhangqun opened 2 years ago
Is the 0.6 version of the schematics the latest? I'm not understanding some of the behavior myself, including something as simple as controlling LED1 and LED2.
Is the 0.6 version of the schematics the latest? I'm not understanding some of the behavior myself, including something as simple as controlling LED1 and LED2.
Yes, the 0.6 is the latest. What's your meaning of the behavior? the hardware or software?
I cannot toggle LED1 and LED2 signals. I have a boot issue now, but hope to resolve that this morning.
I have updated the dts, and tested fine. https://github.com/mingzhangqun/BeagleBoard-DeviceTrees/blob/v5.10.x-ti-arm64-dev/src/arm64/k3-j721e-beagleboneai64-cape.dts
root@BeagleBone:/sys/class/leds# echo 1 > beaglebone\:green\:cape0/brightness
root@BeagleBone:/sys/class/leds# echo 1 > beaglebone\:green\:cape1/brightness
root@BeagleBone:/sys/class/leds# echo 1 > beaglebone\:green\:cape2/brightness
root@BeagleBone:/sys/class/leds# echo 1 > beaglebone\:green\:cape3/brightness
I meant LED1/LED2 on the cape. I fixed it with recent patches at https://github.com/jadonk/BeagleBoard-DeviceTrees/tree/ai64
I'm going to try Motor2 again soon (probably tomorrow morning), but I wanted to try to understand why my interface had issues. I had forgotten that PIN_OUTPUT in the device tree simply disables the input. It seems it also had some impact on being able to configure for gpio output as well somehow. I'm trying to determine if there was a conflict driven or a lack of GPIO enabled on one of your pins needed for Motor2.
PRU firmware: https://github.com/mingzhangqun/cloud9-examples/tree/bbai64-cape DTS: https://github.com/mingzhangqun/BeagleBoard-DeviceTrees/tree/v5.10.x-ti-arm64-dev robotic_demo: https://github.com/mingzhangqun/robotic_demo/tree/main-dev
Motor2 PWM cannot be controlled, other channels are fine.