FlashFloppy: Open-source Firmware for floppy emulators
github.com
github.com
CFLAGS += -include decls.h
Notice that none of the .c files include header files, he just does it globally. I almost do this sometimes- I exclicitly include a "lib.h" in all .c files for some projects.It's convenient, but not good for sharing code with others.
Also these asynchronously cancelable functions are interesting.
The PL2303 chips weren't very good to begin with. When I was first in the market for an usb-ttl dongle, I was told to avoid these like the plague.
https://www.adafruit.com/product/954?gclid=Cj0KCQiAh4j-BRCsA...
PL2303 used to be OK in Linux, but in recent versions (Ubuntu 16, 18) I've seen at least two problems with it: driver hangs sometimes when you replug the USB and device node will hang on open() if there is already serial data being received.
While it is, it doesn't do SPI/I2C/GPIO/JTAG/etc like the FT232H does.
Some CH340 variants have some extra functionality, but the CP210x are pretty bare.
Somehow, because of how cheap the breakout boards are these days (in aliexpress, at least), I ended up with one or more of each of the popular chips.
I'm also eagerly awaiting the support for Heathkit *.H8D format images so that I can more easily use my H89 without needing unobtainable hard-sector floppy disks.
Not the OP, but I guess the power of Raspberry Pi is that everyone already has one - really useful if you want to do something in a hurry without anything extra. I've used a Pi as an emergency programmer on multiple occasions, as an SPI flash burner, as an SWD debugger, as an AVR programmer. You can even use the Pi as an USB-FDD bootdisk or emulate an IDE driver via its parallel interface.
Basically I don't want to have to be constantly moving a usb disk around.
Don't get me wrong: It would be possible to do it, but it would be theoretically not reliable, even if it felt reliable. You'd also need some sort of glue in between, as floppy drives signal at 5v and the rpi isn't 5v tolerant.
Therefore, you could connect the pi to the stm32, rather than directly run the floppy drive from the pi.
The problem with pi is non determinism, meaning you cant bitbang FM/MFM encoded data stream like the floppy drive. Smbakers project goes around this using dual port RAM implementing mechanism employed by for example 1995 DiskOnChip (m-systems, later Sandisk)