10-09-2019, 06:58 PM
I've never explored the PCM/PWM capabilities of the RPi boards at the GPIO-pin level, but is it possible you have a collision in GPIO pin usage here? The pHAT DAC apparently interfaces through the physical* pins 2, 12, and 40, which are +5V, BCM 18, and BCM 21. These BCM pins are mapped into I2S usage through the kernel device-tree overlay invoked in the /boot/config.txt file (e.g., dtparam=i2s=on).
I'm wondering if your application might also be exercising BCM 18 and/or BCM 21. (See https://pinout.xyz/pinout/phat_dac and click through the pins to see their alternative uses).
Perhaps this could be avoided by using the -x mask option described in http://abyz.me.uk/rpi/pigpio/pigpiod.html?
Regards,
Kent
*not to be confused with WiringPi pin numbers.
I'm wondering if your application might also be exercising BCM 18 and/or BCM 21. (See https://pinout.xyz/pinout/phat_dac and click through the pins to see their alternative uses).
Perhaps this could be avoided by using the -x mask option described in http://abyz.me.uk/rpi/pigpio/pigpiod.html?
Regards,
Kent
*not to be confused with WiringPi pin numbers.