ultimate-writer icon indicating copy to clipboard operation
ultimate-writer copied to clipboard

can't init SPI?

Open Sbatushe opened this issue 2 years ago • 7 comments

Hello, I've followed the tutorial on how to install ultimate-typewriter and kept track of all of my commands. this is my setup:

#Logkeys
$ sudo apt install build-essential autotools-dev autoconf kbd
$ git clone https://github.com/kernc/logkeys
$ cd logkeys
$ ./autogen.sh
$ cd build
$ ../configure
$ make
$ sudo make install 
$ cd

#bcm2835
$ curl http://www.airspayce.com/mikem/bcm2835/bcm2835-1.71.tar.gz --output lib.tar.gz
$ tar -xvf lib.tar.gz bcm2835-1.71/
$ rm lib.tar.gz
$ cd bcm2835-1.71/
$ ./configure
$ make
$ sudo make check
$ sudo make install
$ cd

#Ultimate-typewriter
$ git clone https://github.com/NinjaTrappeur/ultimate-writer 
$ cd ultimate-writer 
$ make
$ sudo make install
$ sudo systemctl enable ultimatewriter
$ sudo systemctl start ultimatewriter

Installing process was straightforward, got no errors. However, when i run utlimatewriter i get a message saying that seems like SPI interface is not setup correctly. Maybe i did something wrong? I used sudo raspi-config to enable the SPI interface. I connected my 7.5 inch e-ink display as showed here.

Sbatushe avatar Jul 08 '22 23:07 Sbatushe

Hey,

I'm sorry, I won't be able to help you with this :(

It's been 4 years since I stopped working on this project and I pillaged a lot of its component for other stuff. I don't have a working prototype anymore :(

Do you have the same issue using this tag https://github.com/NinjaTrappeur/ultimate-writer/releases/tag/0.1 ?

picnoir avatar Jul 11 '22 15:07 picnoir

Yes, i tried both with release and current branch. I will try to solve this problem and I'll document everything here :)

Sbatushe avatar Jul 12 '22 07:07 Sbatushe

Did you reboot after raspi-config? Do you have the two switches set as indicated on the HAT? Can you include the message?

I'm working through this now and I am not getting such a message. (I am encountering problems after this step, will have a PR at some point)

za3k avatar Aug 01 '22 21:08 za3k

Which switches? my HAT is like that. I started to develop my own project because i was unable to solve this problem. I don't know if the problem could be my display, because it's a 7.5 inch.

Sbatushe avatar Aug 02 '22 07:08 Sbatushe

There are two physical switched on the HAT, like in the picture. I also have the 7.5 inch display

za3k avatar Aug 02 '22 15:08 za3k

I can probably help on this, if you include the output of running the above. Set your switches on the HAT to "B0".

za3k avatar Oct 13 '22 14:10 za3k

I had the same problem, too: Cannot init SPI interface. Is it activated in raspi-config? solved it with sudo ultimatewriter – it might work for you, too.

dwehrmann avatar Mar 17 '23 01:03 dwehrmann