Due to high demand, expect some shipping delays at this time - orders may not ship for up to 2-3 business days.
0

Illegal Instruction with Mini PiTFT 1.3" - 240x240
Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Please be positive and constructive with your questions and comments.

Illegal Instruction with Mini PiTFT 1.3" - 240x240

by plebel on Fri Jan 14, 2022 12:56 am

Hi there!
I'm new to posting here. I bought a Mini-TFT 240x240 display and I'm having troubles getting started.
https://www.adafruit.com/product/4484#technical-details.

I'm running a raspberry pi zero W with a fresh install of Raspberry Pi OS Lite. Here are the commands I ran on the fresh install:

Code: Select all | TOGGLE FULL SIZE
sudo apt-get install python3-venv
python3 -m venv magic
sudo apt-get upgrade
sudo apt update
sudo apt dist-upgrade -y
source magic/bin/activate
pip3 install adafruit-circuitpython-st7789


Now, in a python 3.7 terminal when I try to import the module I get:

Code: Select all | TOGGLE FULL SIZE
>>> import adafruit_st7789
Illegal instruction


Any ideas? I read on other forums that the illegal instruction error means the module I'm importing was compiled for the wrong OS. It's entirely possible I failed at following the instructions correctly from here https://github.com/adafruit/Adafruit_CircuitPython_Bundle.

Thanks!

Paul

plebel
 
Posts: 3
Joined: Tue Jan 11, 2022 12:58 am

Re: Illegal Instruction with Mini PiTFT 1.3" - 240x240

by plebel on Sat Jan 22, 2022 3:36 pm

Hi Adafruit,
Any thoughts on this? I'm stuck not being able to run your Mini PiTFT :-(
Thanks,

Paul

plebel
 
Posts: 3
Joined: Tue Jan 11, 2022 12:58 am

Re: Illegal Instruction with Mini PiTFT 1.3" - 240x240

by adafruit_support_carter on Fri Jan 28, 2022 12:11 pm

Try setting up the software installs per the guide here:
https://learn.adafruit.com/adafruit-min ... i/overview

adafruit_support_carter
 
Posts: 23520
Joined: Tue Nov 29, 2016 2:45 pm

Re: Illegal Instruction with Mini PiTFT 1.3" - 240x240

by plebel on Wed Feb 02, 2022 11:46 pm

Thanks - it's working now! I somehow missed this tutorial link before, and got to the circuit python bundle installation, which includes the ST7789 library module.

plebel
 
Posts: 3
Joined: Tue Jan 11, 2022 12:58 am

Please be positive and constructive with your questions and comments.