[Video] New Falcon auto-byte-swapping IDE adapter (enhanced twisted cable)
-
Badwolf
- Site sponsor

- Posts: 3043
- Joined: 19 Nov 2019 12:09
[Video] New Falcon auto-byte-swapping IDE adapter (enhanced twisted cable)
Morning all.
I've made a second version of my byte-swapping IDE adapter for the Falcon which this time has some smarts in it.
The idea is data bytes are swapped but register and disk information bytes are not.
This means, if you use HD Driver's dual TOS/Windows partition mode, you can pull your SD/CF card out of the Falcon, slap it into a Windows or Mac (although not Linux ATM) and access your files directly on the desktop. Very useful for deploying Bad Mood, Basilisk II CDROM images or even just setting up MiNT configuration files, for example.
You can already do this with PP's PC-partition supporting IDE driver, but you can't autoboot that. Or EmuTOS, but that doesn't support 16 bit colour modes yet. Also both of those solutions suffer a slow down because of the logical (software) byte swap that's needed.
This adapter gives you the ability to auto-boot as normal, run in TOS as normal and not suffer the slow-down of logical byte swapping. It's similar to the "smart swap" technique Christian's Thunder, Lightning and TwiSTEr boards offer, although developed independently and not related.
Anyway, have at it. I don't promise it'll work with ATAPI or anything more complicated than the exact use case I've described in the video, but it's all open source, the firmware is there to inspect and upgrades and additions are obviously welcome.
Cheers,
BW
https://github.com/dh219/IDE_Adapter_Autoswap
https://www.pcbway.com/project/sharepro ... c9bda.html
I've made a second version of my byte-swapping IDE adapter for the Falcon which this time has some smarts in it.
The idea is data bytes are swapped but register and disk information bytes are not.
This means, if you use HD Driver's dual TOS/Windows partition mode, you can pull your SD/CF card out of the Falcon, slap it into a Windows or Mac (although not Linux ATM) and access your files directly on the desktop. Very useful for deploying Bad Mood, Basilisk II CDROM images or even just setting up MiNT configuration files, for example.
You can already do this with PP's PC-partition supporting IDE driver, but you can't autoboot that. Or EmuTOS, but that doesn't support 16 bit colour modes yet. Also both of those solutions suffer a slow down because of the logical (software) byte swap that's needed.
This adapter gives you the ability to auto-boot as normal, run in TOS as normal and not suffer the slow-down of logical byte swapping. It's similar to the "smart swap" technique Christian's Thunder, Lightning and TwiSTEr boards offer, although developed independently and not related.
Anyway, have at it. I don't promise it'll work with ATAPI or anything more complicated than the exact use case I've described in the video, but it's all open source, the firmware is there to inspect and upgrades and additions are obviously welcome.
Cheers,
BW
https://github.com/dh219/IDE_Adapter_Autoswap
https://www.pcbway.com/project/sharepro ... c9bda.html
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
-
exxos
- Site Admin

- Posts: 28388
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: [Video] New Falcon auto-byte-swapping IDE adapter (enhanced twisted cable)
Oh nice. Might allow me to finally get files from my PC to Falcon CF without stuff screwing up ?
Trudie also has "smart swap" :) Just makes life sooo much easier. Really need to finish the production batch off, never enough time.
Trudie also has "smart swap" :) Just makes life sooo much easier. Really need to finish the production batch off, never enough time.
-
Badwolf
- Site sponsor

- Posts: 3043
- Joined: 19 Nov 2019 12:09
Re: [Video] New Falcon auto-byte-swapping IDE adapter (enhanced twisted cable)
Ought to, although probably requires starting again if your card isn't already dual-compatibility partitioned. You might find a smiliar-shaped item in the box that's on its way to you at the moment. ;)exxos wrote: 18 Jul 2023 11:35 Oh nice. Might allow me to finally get files from my PC to Falcon CF without stuff screwing up ?
Oh cool. Didn't know that, else would have mentioned it.Trudie also has "smart swap" :) Just makes life sooo much easier. Really need to finish the production batch off, never enough time.
BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
-
alexh
- Site sponsor

- Posts: 1341
- Joined: 17 Oct 2017 16:51
- Location: Oxfordshire
Re: [Video] New Falcon auto-byte-swapping IDE adapter (enhanced twisted cable)
Looks cool. Thanks for the hard work.
For solid state drives (at least the ones I design) getting the data in the correct order will probably help with reliability.
For solid state drives (at least the ones I design) getting the data in the correct order will probably help with reliability.
Senior Principal ASIC Engineer - SystemVerilog, VHDL
Thalion Webshrine - http://thalion.atari.org
ST,STf,STfm,STe,MegaST,MegaSTe,Falcon060
A500+,A600,A4000/060,CD32,CDTV
Thalion Webshrine - http://thalion.atari.org
ST,STf,STfm,STe,MegaST,MegaSTe,Falcon060
A500+,A600,A4000/060,CD32,CDTV
-
exxos
- Site Admin

- Posts: 28388
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: [Video] New Falcon auto-byte-swapping IDE adapter (enhanced twisted cable)
:D :D Hopefully can pick it up at the weekend.Badwolf wrote: 18 Jul 2023 11:41 You might find a smiliar-shaped item in the box that's on its way to you at the moment. ;)
www.youtube.com/watch?v=ZJdIOmBgBVMOh cool. Didn't know that, else would have mentioned it.
-
troed
- Posts: 936
- Joined: 21 Aug 2017 22:27
Re: [Video] New Falcon auto-byte-swapping IDE adapter (enhanced twisted cable)
Saw the video - nice work. Do you have additional details as to why Linux doesn't play ball?
/Troed
/Troed
-
Badwolf
- Site sponsor

- Posts: 3043
- Joined: 19 Nov 2019 12:09
Re: [Video] New Falcon auto-byte-swapping IDE adapter (enhanced twisted cable)
No. My guess is that the compatibility trick relies on something that Windows tolerates but Linux doesn't. Linux detects nonsensical partition sizes.troed wrote: 20 Jul 2023 10:04 Saw the video - nice work. Do you have additional details as to why Linux doesn't play ball?
/Troed
Now this I've not tested for a while, but IIRC Linux actually suports AHDI Atari-format partition so if you want to use Linux, you don't need the Windows compatibility mode in the first place.
Didn't think about that during the video shoot.
BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
-
Steve
- Posts: 3309
- Joined: 15 Sep 2017 11:49
Re: [Video] New Falcon auto-byte-swapping IDE adapter (enhanced twisted cable)
Just built up mine this morning! I've used pin headers for all the connectors since I'm not using the same kind of SD card solution BW is, I'll use very short IDE cables instead. Hopefully that'll be ok.
Next, programming it :)
Big thanks to Badwolf!
Next, programming it :)
Big thanks to Badwolf!
You do not have the required permissions to view the files attached to this post.
-
tOriman
- Posts: 147
- Joined: 21 Jul 2022 13:08
Re: [Video] New Falcon auto-byte-swapping IDE adapter (enhanced twisted cable)
Hi,
Nice piece of hardware :) Thank you. I find it useful.
tOri
Nice piece of hardware :) Thank you. I find it useful.
tOri
https://reversing.pl/ - SSL enabled site ATARI - Power without price and necessary elementsvarious varieties for Atari and not only - useful or not, but it's worth a look ...
http://atari.myftp.org
http://atari.myftp.org
-
Steve
- Posts: 3309
- Joined: 15 Sep 2017 11:49
Re: [Video] New Falcon auto-byte-swapping IDE adapter (enhanced twisted cable)
I had lots of trouble getting the CPLD programmed! So odd! I basically just tried three of four times in a row and eventually it worked? So strange.
Check the chip is detected:
Try to program, 1st try:
Try to program, 2nd try:
Try to program, 3rd try:
Try to program, 4th try:
Check the chip is detected:
Code: Select all
pi@xilinx:~/IDE_Adapter_Autoswap/firmware-bin $ sudo xc3sprog -c sysfsgpio_creator -j
XC3SPROG (c) 2004-2011 xc3sprog project $Rev: 774 $ OS: Linux
Free software: If you contribute nothing, expect nothing!
Feedback on success/failure/enhancement requests:
http://sourceforge.net/mail/?group_id=170565
Check Sourceforge for updates:
http://sourceforge.net/projects/xc3sprog/develop
JTAG loc.: 0 IDCODE: 0x59604093 Desc: XC9572XL Rev: E IR length: 8Code: Select all
pi@xilinx:~/IDE_Adapter_Autoswap/firmware-bin $ sudo xc3sprog -c sysfsgpio_creator -v -p 0 ide_autoswap.jed
XC3SPROG (c) 2004-2011 xc3sprog project $Rev: 774 $ OS: Linux
Free software: If you contribute nothing, expect nothing!
Feedback on success/failure/enhancement requests:
http://sourceforge.net/mail/?group_id=170565
Check Sourceforge for updates:
http://sourceforge.net/projects/xc3sprog/develop
Using built-in device list
Using built-in cable list
JTAG chainpos: 0 Device IDCODE = 0x59604093 Desc: XC9572XL
Erase still running ff
Device is not blank
Programming Sector 0................................failed
Verify Sector 0
Mismatch at fuse 160: 1 vs 0
Code: Select all
pi@xilinx:~/IDE_Adapter_Autoswap/firmware-bin $ sudo xc3sprog -c sysfsgpio_creator -v -p 0 ide_autoswap.jed
XC3SPROG (c) 2004-2011 xc3sprog project $Rev: 774 $ OS: Linux
Free software: If you contribute nothing, expect nothing!
Feedback on success/failure/enhancement requests:
http://sourceforge.net/mail/?group_id=170565
Check Sourceforge for updates:
http://sourceforge.net/projects/xc3sprog/develop
Using built-in device list
Using built-in cable list
JTAG chainpos: 0 Device IDCODE = 0x59604093 Desc: XC9572XL
Erase still running 00
Device is not blank
Programming Sector 0................................failed
Verify Sector 0
Mismatch at fuse 192: 1 vs 0Code: Select all
pi@xilinx:~/IDE_Adapter_Autoswap/firmware-bin $ sudo xc3sprog -c sysfsgpio_creator -v -p 0 ide_autoswap.jed
XC3SPROG (c) 2004-2011 xc3sprog project $Rev: 774 $ OS: Linux
Free software: If you contribute nothing, expect nothing!
Feedback on success/failure/enhancement requests:
http://sourceforge.net/mail/?group_id=170565
Check Sourceforge for updates:
http://sourceforge.net/projects/xc3sprog/develop
Using built-in device list
Using built-in cable list
JTAG chainpos: 0 Device IDCODE = 0x59604093 Desc: XC9572XL
Device is not blank
Programming Sector 0................................failed
Verify Sector 1
Mismatch at fuse 431: 0 vs 1Code: Select all
pi@xilinx:~/IDE_Adapter_Autoswap/firmware-bin $ sudo xc3sprog -c sysfsgpio_creator -v -p 0 ide_autoswap.jed
XC3SPROG (c) 2004-2011 xc3sprog project $Rev: 774 $ OS: Linux
Free software: If you contribute nothing, expect nothing!
Feedback on success/failure/enhancement requests:
http://sourceforge.net/mail/?group_id=170565
Check Sourceforge for updates:
http://sourceforge.net/projects/xc3sprog/develop
Using built-in device list
Using built-in cable list
JTAG chainpos: 0 Device IDCODE = 0x59604093 Desc: XC9572XL
Device is blank
Programming Sector 107.
Programming time 15866.5 ms
Verify Sector 107
Success! Verify time 2206.0 msWho is online
Users browsing this forum: ClaudeBot and 13 guests