blus-audio / sigmadsp

An application for controlling Analog Devices Sigma DSPs via Network.
GNU General Public License v3.0
18 stars 1 forks source link

Sigmadsp with Allwinner H3 #90

Closed mikhalych63 closed 8 months ago

mikhalych63 commented 8 months ago

I am try to install your project sigmadsp on a nanopi neo air board with Allwinner H3. OS is Armbian Bookworm (Debian) distribution. Now I have achieved that the sigmadsp-backend system service is loading, but with the error "raise BadPinFactory('Unable to load any default pin factory!')" As I understand it, the error is related to managing pins using the gpiozero library, but this library is intended only for Raspberry pi! How to simply disable this feature: reset and selfboot? At least now my ADAU1467 is normally programmed without using these contacts and I only need a SigmaTCP connection right now?

elagil commented 8 months ago

Can you tell me where exactly the error is raised? I can catch it then.

elagil commented 8 months ago

Please check https://github.com/blus-audio/sigmadsp/pull/91/files#diff-087b879eaae2a27c2a1b33219773cb58af127b8b7f76c62da614808a19c64769R31-R38

which is called once on startup.

It should hopefully fix your problem. GPIOs will now be disabled on non-Raspberry Pi platforms. Just update to the latest release v3.0.11. Of course, you will not be able to reset your DSP from sigmadsp, or control the selfboot pin.

What would also have helped you: removing the pin definitions from the configuration file. If there are no pin definitions, there will not be an attempt at creating a gpiozero device.

mikhalych63 commented 8 months ago

Thank you!. I'll try it tonight.

mikhalych63 commented 8 months ago

Good! it's working now! Thank you!

elagil commented 8 months ago

Great! Happy to hear that.