CircuitGizmos

Electronic Products for Creative Minds

  • Home
  • Gizmo Store/Products
  • Documentation/Datasheets
  • Projects/Libraries
  • GizmoBlog
  • Services/Contact
    • Design
    • Contact Gizmo!
  • Your Gizmo Cart
    • Your Account

January 3, 2019 by robert Leave a Comment

Workbench Retro Computer Pt. 3

Workbench Retro Computer Pt. 3

TL;DR; rPi firmware installation and troubleshooting.

PiGFX is located at: https://github.com/fbergama/pigfx?fbclid=IwAR1-AOMMtR0iOuaQAmUgeQPbty2tmBa8ILsbNYOb5v-wPQC_UYzudv06IYY The “kernel.img” file that you need can be downloaded from this site. The instructions say that “start.elf” and “bootcode.bin” are available in that github /bin directory, but I found that to not be the case. You also have to make a “config.txt” file on the root of the SD card.

After loading up the SD card I popped it into the rPi. I was happy that the original Pi that I had (without ethernet jack) fired up and showed something on screen.

Interesting message from aliens…

Better than nothing, right? So this was a bit of garbage on the screen. I suspected that it was noise picked up from the open serial input pin. To test this I put a green jumper wire from serial out to serial in. 

Tx to Rx jumper

So with this jumper in place, the text typed on the keyboard should go to the serial output, loop dizzyingly through the green wire, and return to the serial input thus being displayed on the screen.

Loop test worked

Resetting the board with the loop back connection (green wire) in place brought up this screen:

Startup screen

Colorful! The startup screen also shows that the USB keyboard that I plugged in to the rPi was found. Oddly, though, when I typed something on the keyboard this time, nothing showed up on the screen. I unplugged the green wire, immediately got noise on the serial input which cleared the startup screen and displayed random characters (like before) and only then anything I typed on the keyboard was displayed.

So the PiGFX firmware waits to receive a character before allowing the keyboard to output a character. This could be rather limiting if the system you connect to waits for a key press before sending anything out the serial port. 🙁

With a successful loop back test performed I connected this hardware to a microcontroller board that I knew was set to communicate at 115200 baud. 

And it didn’t work.

After a little bit of troubleshooting, I hooked up a scope to the serial output to verify the baud and it was way off. The reason? I failed to copy the “config.txt” file to the SD card. Without that config information, the serial port runs too fast.

Here is the file for the SD card, so that you can just download it to your own SD card.

config.txtDownload

With that file correctly added to the SD card, I was able to communicate with my target. Unfortunately I discovered a problem with the PiGFX terminal code. My microcontroller board depends upon the ability to move the cursor to some absolute screen positions using escape sequences. The PiGFX firmware is supposed to support this, but the original developer assumed that the upper left screen position was location 0,0 when it should be 1,1.

In old terminals that upper left position was line 1, column 1. The screen positioning starts at 1, not at 0. I’ve contacted the person that is maintaining the code with this issue. 

The PiGFX itself is still useful. And the PiGFX in this Workbench Retro Computer will still be useful, but it would still be better if this was fixed.

(Part 4 will be coming up after the PiGFX firmware is fixed.)

Filed Under: Uncategorized Tagged With: HDMI, PiGFX, raspberry pi, serial, terminal

A Ton of Documentation

Open all | Close all

Projects made by Gizmo, Friends, and Members

open all | close all

Recent GizmoBlog Musings

  • Altair 8800 using a ColorMax!
  • Re-energizing the ColorMax, Pt. 3

Visit us!

  • Facebook

Electronic Products for Creative Minds

CircuitGizmos is your source for electronic products that help you create your embedded projects. Here at CircuitGizmos.com you will find a friendly store filled with creative products and all of the documentation that you need to use these gizmos.

We create devices that we believe make electronics fun, but we also know that our products are used for professional designs. For decades we have designed products for commercial, military, and medical industries. Our gizmos here are great for engineers and hobbyists alike.

Copyright © 2008+ CircuitGizmos, L.L.C. All rights reserved

Image already added

Recently Viewed Products

Copyright © 2023 · Generate Pro Theme on Genesis Framework · WordPress · Log in