
1541-rePico
fook42/1541-rePico
replacement of analog-part of Commodore 1541-Floppy devices based on Pi-Pico(2)

replacement of analog-part of Commodore 1541-Floppy devices based on Pi-Pico(2)
1541-rePico is an open-source printed circuit board by fook42, from the fook42/1541-rePico repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 59.1 × 60 mm with 46 parts on 85 nets, routed with 532 tracks and 71 vias.
It is built around the SN74LVC4245APW and BSS138. Its parts include 20 resistors, 11 connectors, 9 transistors, 3 ICs and 1 capacitor. It belongs with the RP2040 boards of this library.
replacement of analog-part of Commodore 1541-Floppy devices based on Pi-Pico(2)
this project was derived from the original 1541-rebuild from Thorsten Kattanek (https://github.com/ThKattanek/1541-rebuild) ! parts of his code were taken from there and adopted for Raspberry Pico and modified to handle disk images differently. Thanks!
the C64/C16 selector-programm was developed and implemented by PeiselUlli !
thanks to BensonRSI for adding debugging documentation, dev-containers and github-magic !
latest version:
single board, size 59mm x 60 mm
one size fits for all 1541 models.
sudo apt install cmake libusb-1.0-0-dev build-essential pkg-config python3 xxd gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib acmefrom : https://github.com/raspberrypi/pico-sdk
all in one:
git clone https://github.com/raspberrypi/pico-sdk.git
export PICO_SDK_PATH=$(pwd)/pico-sdk
echo "export PICO_SDK_PATH=$PICO_SDK_PATH" >> ~/.profile"
cd pico-sdk
git submodule update --init lib/mbedtlsfrom : https://github.com/raspberrypi/picotool
git clone https://github.com/raspberrypi/picotool.gitmake sure submodules are initialized and up-to-date (like NoOS-Fat-lib)
git submodule update --init
git pull --recurse-submodulesprepare build-folder / configure Ninja for build the cmake project
cd firmware
mkdir build
cd build
cmake .. -D BUILD_MENUPRG=OFF -D COMPRESS_MENUPRG=ON -D PCB_VERSION=17optional cmake variables are:
| Variable | Values | Description |
|---|---|---|
| BUILD_MENUPRG | ON*/OFF | let ACME compile the provided menu.asm-code. Otherwise the shipped, precompiled "menu.prg" will be used. |
| BUILD_SELECTORPRG | ON*/OFF | let PETCAT convert the boot-selector basic code to PRG. Otherwise the shipped, precompiled "selector.prg" will be used. |
| COMPRESS_MENUPRG | ON*/OFF | uses dali binary compression to generate a smaller menu-prg object |
| PCB_VERSION | 0..17* | defines which PCB version is used -> enables specific code features according to pcb-layout (like sound output) |
(* is default)
now trigger a build
make -jconnect your pico2 via USB cable and use picotool to flash the firmware
picotool load -t uf2 1541-rePico.uf2 -x -fConnect your debugger to the Pico using the SWD pins:
Ensure the debugger is connected via USB to your development machine
Start OpenOCD in a terminal:
openocd -f interface/cmsis-dap.cfg -f target/rp2350.cfgOpenOCD will listen on port 3333 for GDB connections.
VS Code launch configurations are available:
Pico Debug (Cortex-Debug) - Integrated debugging with OpenOCD
Press F5 or select "Pico Debug (Cortex-Debug)" from the Run menu. This will:
main()When debugging, common GDB commands include:
continue # Resume execution
step # Step into function
next # Step over function
break <func> # Set breakpoint at function
break <file>:<line> # Set breakpoint at file:line
print <var> # Print variable value
display <var> # Show variable on each step
backtrace # Show call stack"Device not found":
openocd -d for debug outputGDB connection failed:
t.b.d.
currently D64 and G64 are supported as for reading and writing.
as bonus, PRG files can be loaded by an on-the-fly routine that creates a valid D64 image out of it.
additionaly a small tool conv_x64 is provided that allows easy conversion from one to the other on you linux-pc.
impressions of current setup and PCB can be found here.
great collection of basics about disk-image-formats can be found here:
https://ist.uwaterloo.ca/~schepers/formats.html
forum64 project discussion thread (base of 1541-rebuild and 1541-rePico)
https://www.forum64.de/index.php?thread/59884-laufwerk-der-1541-emulieren
| Qty | Value | Footprint | References |
|---|---|---|---|
| 16 | 10k | Resistor_SMD:R_0603_1608Metric | R5, R6, R7, R8, R9, R10, R11, R12, R13, R14, R15, R16, R17, R18, R19, R20 |
| 9 | BSS138 | Package_TO_SOT_SMD:SOT-23 | Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9 |
| 2 | 1.8k | Resistor_SMD:R_0805_2012Metric | R1, R2 |
| 1 | 10k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R3 |
| 1 | 1M | Resistor_SMD:R_0603_1608Metric | R4 |
| 1 | 47µF | Capacitor_THT:CP_Radial_D5.0mm_P2.50mm | C1 |
| 1 | Buzzer | Buzzer_Beeper:MagneticBuzzer_StarMicronics_QMX | BZ1 |
| 1 | Buzzer Connector | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J8 |
| 1 | Conn_01x01_Pin | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | J5 |
| 1 | Conn_01x05_Pin | Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_Vertical | J3 |
| 1 | Display Connector | Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_Vertical | J1 |
| 1 | Display Power | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J2 |
| 1 | EXT_5V | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J6 |
| 1 | Pico | RPi_Pico:RPi_Pico_SMD_TH | U1 |
| 1 | RESET | Button_Switch_THT:SW_PUSH_6mm_H5mm | SW1 |
| 1 | RESET_1541 | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J7 |
| 1 | SD Card Module Connector | Connector_PinSocket_2.54mm:PinSocket_2x08_P2.54mm_Vertical | J4 |
| 1 | SD Power | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J9 |
| 1 | SN74LVC4245A | Package_SO:TSSOP-24_4.4x7.8mm_P0.65mm | U2 |
| 1 | VIA6522 | Package_DIP:DIP-40_W15.24mm_Socket_LongPads | IC1 |
| 1 | VIA_PIN_1-20 | Connector_PinHeader_2.54mm:PinHeader_1x20_P2.54mm_Vertical | P1 |
| 1 | VIA_PIN_21-40 | Connector_PinHeader_2.54mm:PinHeader_1x20_P2.54mm_Vertical | P2 |

fook42/1541-rePico
replacement of analog-part of Commodore 1541-Floppy devices based on Pi-Pico(2)

Staacks/gbinterceptor
Capture or stream Game Boy gameplay footage via USB without modifying the Game Boy.

DLehenbauer/econopet
Mainboard replacement for Commodore PET/CBM series machines





lolakkalol/6502-computer-project
A 6502-based computer project! Explore the docs » View Demo Programs · Report Bug · Request Feature

strickyak/tfr9
The TFR/9 Single Board Computer for Hitachi 6309E or Motorola 6809E CPUs (TFR/901)
It measures 59.1 × 60 mm and has 2 copper layers, 1.6 mm thick.
46 parts, built around the SN74LVC4245APW and BSS138. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the fook42/1541-rePico repository on GitHub, at the commit this page was made from: the board is hardware/1541-rePico.kicad_pcb and its schematic hardware/1541-rePico.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).