Giter Site home page Giter Site logo

slamy / slamystm32floppy Goto Github PK

View Code? Open in Web Editor NEW
19.0 6.0 6.0 762 KB

Raw Floppy Writer using STM32F4Discovery. Supports Amiga, Atari ST, C64 Images. Even copy protected.

C 98.54% Assembly 0.79% CMake 0.11% C++ 0.54% Shell 0.01% Makefile 0.01%

slamystm32floppy's Introduction

SlamySTM32Floppy

Raw Floppy Writer using STM32F4Discovery. Supports Amiga, Atari ST, C64 Images. Even copy protected.

Software you need for this project:

  • libusb-1.0.0
  • Maybe Linux. This project was never tested on a Windows machine. But as libusb is multi platform it might work anyway.
  • libfs-capsimage.so.4.2 (This is needed to parse IPF files if you want to read those)

Hardware you need for this project

  • STM32F4Discovery. (Never tested with another controller)
  • Standard 3.5" HD floppy drive for Amiga, Atari ST and Amstrad CPC
  • Standard 5.25" 80 track HD floppy drive for C64 (yes it works, yes even with the small head)
  • A floppy cable with both 3.5" and 5.25" connectors. The latter only if you need C64 support.
  • A board you have to make for yourself to attach the STM32F4 to the Floppy Cable.
  • To write a C64 flippy disk with only one index hole, a hardware change on the floppy drive is needed! PC drives only work if they get an index signal. The STM32 will produce one that you have to get to the index sensor by wire.

An OpenOCD flashing script is included to work with the integrated STLink.

This program is capable of writing certain floppy image formats.

  • .adf
  • .ipf (a few copy protections are written without change)
  • .st
  • .dsk
  • .d64
  • .g64 (a few copy protections are written as is. but some are not working)

I've uploaded this piece of software so that others can learn from it. It shows communication using libusb with a microcontroller and is able to parse various formats.

Here is my blog entry on this topic: http://slamyslab.blogspot.com/2016/04/slamy-stm32-floppy-controller-part-1.html

Disclaimer Please keep in mind that this code was never meant to be uploaded. I can't guarantee that it's free of errors. If this program or the circuit described here is damaging your hardware it's your fault for trying so. The source code is provided as is.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.