Hi,
I wanted to use PRU-ICSS's eCap module to generate PWM signals, It is something I want to implement in my GSoC project. I referred to
AM335x TRM section 15.3, It has a detailed description of how to use ECAP to generate PWM signals at section 15.3.3.5.
I am using pru-gcc version:
pru-gcc (GCC) 10.0.1 20200315 (experimental)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Command to compile:
pru-gcc main0.c -o pwm -I./inlude/ -I./include/am335x/ -mmcu=am335x.pru0
Command to load binary and start PRU:
cp pwm /lib/firmware/am335x-pru0-fw
config-pin p9.42 pru_ecap
echo start > /sys/class/remoteproc/remoteproc0/state
When I load the binary, it loads without any issue, but i fail to get output on p9.42 pin, which is the pr1_ecap pin. I check with a multimeter, It shows Nada, zero Volts.
I am using a BeagleBone Black Wireless:
Linux beaglebone 4.19.94-ti-r45 #1buster SMP PREEMPT Thu Jun 18 19:18:41 UTC 2020 armv7l GNU/Linux
Regards,
Vedant Paranjape