leo main
Posts: 3
Joined: Tue May 29, 2018 2:14 am

perl hipi Library mcp3008 doesn't Workshop with spi and dt

Tue May 29, 2018 7:32 am

Hello everyone,

I have a problem with the HiPi library (Perl) since the kernel Update.

I tought the DT changes the implemantion of the devices and not change the SPI Code . Is that
right ?

I have added in the config.txt the "dtparam=spi=on" parameter and the spidev devices appears
in the dev Folder.

But the lib have problem to communicate with the SPI-Bus and show the error "SPI transfer Failed".
The code is Broken add this line.
my @result = unpack('C3', $self->device->transfer( pack('C3', @buffers) ));
Has anyone an idea ??

Return to “Other programming languages”