Yep, the coding could be a bit of a problem if you've not done any C stuff before...
I'm not much of a C programmer myself, but I can understand most code and modify it OK.
When I started the direct-connection project a few months ago, it was the very first time I'd done ANY Dreamcast coding at all.
For the actual dev environment itself (under Windoze), I just used the R4 Dev ISO...
http://dchelp.dcemulation.org/downloads/DDEr4.rar
There are a few guides online for setting it up, but you don't really need to use the Dev++ IDE...
http://www.dcemu.co.uk/vbulletin/threads/97142-DC-Dev-R4-Dev-C-Guide
With the R4 ISO installed, you should be able to compile things straight from the Cygwin window.
I don't think there's much extra setting up that needs to be done?
Try installing it anyway, then you should be able to have a play with the examples.
These are normally under C:\cygwin\usr\local\dc\kos\kos\examples
(You really need to be familiar with the basic Linux commands under Cygwin to navigate the directories etc.)
Or, what I normally do is to edit the code using Notepad++, then only use the Cygwin window to run the actual compiler.
(I'm guessing Dev++ is similar to Notepad++, but probably allows you to compile the code with a single button-click?)
And here's a backup of my CF card / IDE redirection code (again, still not booting past Sega license!)...
http://www.multiupload.nl/KPN3MM05K9
Just to be clear, the above code is for the direct connection method (ie. IDE cable soldered to G1 port).
It's supposed to be used with the CF adapter or HDD set to SLAVE, so the GD drive can be left plugged in to get the DC to boot.
It also assumes you're using a SWAT SD card modded DC as well.
(It's possible to run the code from CD-R, but it would take FOREVER to try debugging if you have to keep writing a new CD-R or CD-RW each time!)
The CF card / HDD should have NO filesystem or formatting on it. It doesn't use FAT32 or anything like that at this stage, so Windows won't recognize it.
The code simply points directly to the LBA offset on the CF / HDD where your GD image (track03.iso) resides.
If your GD image is in .BIN format, then it will first need converting to ISO instead (it was just easier to do the sector calcs this way).
IIRC, you'll need to modify the code to tell it the LBA from where to read the image from CF / HDD.
(I used Winhex to copy track03.iso directly onto the CF card.)
The code has the basic redirection stuff in it, but I don't know if this is getting over-written in RAM after the image tries to boot?
tbh, there are lots of issues to sort out with this as I don't know how the hell to properly debug this stuff on the DC hardware itself?
If there was a simple way to hook up the DC to the PC to get lots of debug info, then we'd have a much better chance.
I've probably mentioned this many times, but just in case anyone thought the code was anywhere near complete. lol
Of course, you'd normally want to use the DC's serial port for simple debugging info, but this is taken up by the SWAT SD mod.
So, in some ways maybe it's better to boot the code from a CD-R. I wouldn't recommended it though, unless you're very sadistic. :wink-new:
OK, so there's the basic process. As you can tell, I hit a brick wall in the end as I can't figure out how to debug it.
There may be a way to still use debug output on the serial port while the "SWAT" SD card mod is still connected?
The idea is that the serial output to the PC is only enabled when the /CS pin is HIGH (inactive).
This would require an update from SWAT to get it to work though.
Yep, I know, it's all a bit of a mess. :dejection:
As I say, I'm still learning so if you can find more experienced DC coders who fancy hooking up the IDE cable,
they'd probably be able to debug it much easier and add more advanced features.
btw, I'm working on the assumption that Deunan will finish his board soon.
I don't really mind which method works as long as it works well, and isn't stupid expensive. :friendly_wink:
If anyone wants to give the cable + coding a whirl (even just to learn some C stuff on the DC), I might be able to give you some help with the compiler set up.
OzOnE.
P.S. Magneto-optical is a nice idea, but you might as well use CF cards these days.
I'd imagine MO drives / disks are still available, but they're probably getting rare by now?