-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Stuck in st7789_init #4
Comments
The Documentation for it: Although i think i might have found the issue. So on a educated guess, either
|
Hi @TheCustomFHD, If you unplug all the wires does the board get past the init function? |
Hello and sorry for the late reply @sandeepmistry , I have just now attempted to just run the uf2 of the blink example with nothing connected. it blinks before the function. but it refuses to blink anywhere after the function call. If it doesnt get any informations (which it looks like), then im confused where it could be hanging/crash on. To be clear, im running this on a standard Pico, not a Pico W, and its running at the stock speeds, and i compiled on Linux (Arch Linux, up to date if that matters, perhaps a compiler bug?) |
(This is invalid, ignore this comment) |
Hey! I have a Pico W and I'm also getting stuck on the init function – even if I disconnect all pins. Here's my project that reproduces the problem. EDIT: It appears to hang on this line: // SWRESET (01h): Software Reset
printf("This line gets executed");
st7789_cmd(0x01, NULL, 0);
printf("This one doesn't");
sleep_ms(150);
EDIT 2: It seems to be a timing issue. The more EDIT 3: By adding EDIT 4: I was able to prevent the Pico from crashing by swapping all the |
I found out the actual cause of the problem, and opened issue #5 for it. |
I tried Connecting the CBerry28, an old Raspberry Pi Screen to the Pico using this, as the documentation of it states that it is using this chip. I have added some Blinking as a form of Debug so i can see where the Pico is at at a Moment, since i cant get a USB Serial Connection to work on this Project. It seems to not get past the st7789_init for some odd reason, im fairly sure i have connected everything correctly, here is my Pin Mapping to this Display:
VIN = 3.3V | Display Pi Pin = 1 | Pico Pin = 3.3V
GND = GND | Display Pi Pin = 6 | Pico Pin = GND
SCK = Clock | Display Pi Pin = 23 | Pico Pin = GPIO 18
MOSI = SDA | Display Pi Pin = 19 | Pico Pin = GPIO 19
CS = CS | Display Pi Pin = 24 | Pico Pin = GPIO 17
RST = RST | Display Pi Pin = 22 | Pico Pin = GPIO 21
D/C = RS | Display Pi Pin = 15 | Pico Pin = GPIO 20 (High = Control Word - Low = Display Word)
Backlight = 5V | Display Pi Pin = 2 | Pico Pin = 5V VBUS
Display Pin 17 is connected to Display Pin 12, to get a 100% Duty Cycle Signal for the Backlight to turn on.
I have this Set-Up connected via Jumper Cables. Id be curious to know where i went wrong with using your library, so that i wouldn't need to attempt to code my own one just to see that i wired something up wrong or forgot to tell your library a specific thing.
I know this might not be a code related issue, but it not returning from that init function, makes me hope you could have an idea of whats going on. I've mainly tried the blink example. Thanks in advance!
The text was updated successfully, but these errors were encountered: