ssd1306 icon indicating copy to clipboard operation
ssd1306 copied to clipboard

SSD1331 demo failing

Open sgjava opened this issue 3 years ago • 4 comments

make: Entering directory '/home/servadmin/ssd1306/examples'
make -C ../src -f Makefile.linux MCU= SDL_EMULATION= \
                     ADAFRUIT=
make[1]: Entering directory '/home/servadmin/ssd1306/src'
make[1]: Nothing to be done for 'default'.
make[1]: Leaving directory '/home/servadmin/ssd1306/src'
mkdir -p ../bld/demos/
cc -o ../bld/demos/ssd1331_demo.out -g -Os -w -ffreestanding -MD -g -Os -w -ffreestanding -I./demos/ssd1331_demo -I../src -Wall -Werror -Wl,--gc-sections -ffunction-sections -fdata-sections  ../bld/main.o ../bld/demos/ssd1331_demo/sova.o ../bld/demos/ssd1331_demo/ssd1331_demo.o -L../bld -lssd1306
../bld/demos/ssd1331_demo.out
Failed to initialize SPI: No such file or directory!
^Cmake: *** [Makefile.linux:52: flash] Interrupt

I assume there's a way to set SPI device and pins for DC and RESET? Also I shouldn't have to run as root as I have the permissions set for non-root user on SPI device.

sgjava avatar Dec 11 '21 23:12 sgjava

Do you have spidev kernel module loaded? Does the application have access privileges to kernel module driver? What is the configuration of the target system?

lexus2k avatar Jan 06 '22 08:01 lexus2k

Doesn't it use spidev from userspace?

sgjava avatar Jan 06 '22 13:01 sgjava

Yes, it use spidev from userspace, but accessing to spi char devices requires root privileges

lexus2k avatar Mar 10 '22 04:03 lexus2k

I just use a script to set permissions https://github.com/sgjava/javauio/blob/main/scripts/uio-permissions.sh I mean I use u8g2 fine with https://github.com/olikraus/u8g2/tree/master/sys/arm-linux You can see where I committed changes to use c-periphery.

sgjava avatar Mar 10 '22 14:03 sgjava