Updated the Build Guide with details around which screws work best for putting the shell together
5.7 KiB
Step by step guide how to make SC64
All necessary manufacturing files are packaged in every sc64-extra-{version}.zip
file in GitHub releases.
Please download latest release before proceeding with the instructions.
PCB manufacturing data
- Locate KiCad project inside
hw/pcb
folder - Export gerber/drill files
- Export BOM spreadsheet
- Export PnP placement files
- Send appropriate files to the PCB manufacturer
PCB requirements
Before ordering PCBs make sure you select correct options listed below:
- PCB thickness: 1.2 mm
- Surface finish (plating): ENIG (Hard gold for edge connector is recommended but it's very expensive)
- PCB contains edge connector: yes
- Beveled edge connector: yes, 45° (other angles also should work OK)
Components
- Locate interactive BOM file inside
hw/pcb
folder - Order all parts listed in the BOM file or use PCB assembly service together with your PCB order
Plastic shell
- Locate
.stl
files insidehw/shell
folder - Use these files in the slicer and 3D printer of your choice or order ready made prints from 3D printing company
- For screws, M2x10 works great for the top two holes while M2x8 fits well in the bottom two
Putting it together
There are no special requirements for soldering components to board. All chips and connectors can be soldered with standard manual soldering iron, although hot air station is recommended. Interactive BOM has every component and its value highlighted on PCB drawings and it's strongly recommended to use during assembly process. You can skip this step if PCB assembly service was used in previous steps.
Initial programming
Please read the following instructions carefully before proceeding with programming.
Note: This guide assumes you are using Windows 10 or above.
You will require the following hardware:
- A PC running Windows 10 or above (any Linux distro should also work but programming FT232H EEPROM is arguably trickier without an official app).
- A USB to UART (serial) adapter (with 3.3V signaling is required, e.g. TTL-232R-3V3).
You will require the following applications and packages:
- FT_PROG - FTDI FT232H EEPROM programming software.
- Python 3 with
pip3
- necessary for initial programming script:primer.py
(Windows install: check option add python to PATH). sc64-extra-{version}.zip
- programming scripts and firmware files, download the latest version.
Programming must be done in specific order for primer.py
script to work correctly.
Preparations:
- Install FT_PROG.
- Install Python 3.
- Unpack
sc64-extra-{version}.zip
into a folder. - Open terminal and navigate to the folder you've unpacked SC64 files.
First, program the FT232H EEPROM:
- Connect the SC64 board to your PC with a USB-C cable.
- Locate FT232H EEPROM template
ft232h_config.xml
from thefw/ftdi/
directory. - Launch
FT_PROG
software. - Click on
Scan and parse
if no device has shown up. - Right click on SC64 device and choose
Apply Template -> From File
. - Select previously located
ft232h_config.xml
. - Right click on SC64 device and choose
Program Device
.
Your SC64 should be ready for next programming step.
Second, program FPGA, microcontroller and bootloader:
- Disconnect SC64 board from power (unplug USB-C cable).
- Connect serial UART/TTL adapter to
TX/RX/GND
pads marked on the PCB. Cross connectionTX -> RX
,RX -> TX
! - Connect serial adapter to the PC.
- Check in device manager which port number
COMx
is assigned to serial adapter. - Connect SC64 board to the PC with USB-C cable (IMPORTANT: connect it to the same computer as serial adapter).
- Locate
primer.py
script in the root folder. - Make sure these files are located in the same folder as
primer.py
script:requirements.txt
,sc64-firmware-{version}.bin
. - Run
pip3 install -r requirements.txt
in the terminal to install required python packages. - Run
python3 primer.py COMx sc64-firmware-{version}.bin
(replaceCOMx
with port located in step 4). On Windows it'spython
instead ofpython3
. - Follow the instructions on the screen.
- Wait until programming process has finished (DO NOT STOP PROGRAMMING PROCESS OR DISCONNECT SC64 BOARD FROM PC, doing so might irrecoverably break programming through UART header and you would need to program FPGA and/or microcontroller with separate dedicated programming interfaces through Tag-Connect connector on the PCB).
Congratulations! Your SC64 flashcart should be ready for use!
Troubleshooting
primer.py
threw error on Bootloader -> SC64 FLASH
step
This issue can be attributed to incorrectly programmed FT232H EEPROM in the first programming step.
Check again in FT_PROG
application if device was configured properly.
Once FPGA and microcontroller has been programmed successfully primer.py
script needs to be run in special mode.
Please use command python3 primer.py COMx sc64-firmware-{version}.bin --bootloader-only
to try programming bootloader again.