I've tried initializing the serial port in many different ways, but it doesn't seem to work after loading my app from DS?
Maybe it's the way the SCIF is initialized for the SD Card, or something KOS is doing?
That's a very nice looking board, cybdyn. Much neater than my efforts.
AFAIK, the "secret code" for DMA transfer is basically this...
*SB_GDAPRO = 0x8843407F; // Set DMA transfer range to the system memory area.
The upper 16-bits is the magic code 0x8843 (which stays the same apparently?).
The other bits set up the memory protection range for the DMA (the HOLLY will generate an error interrupt if the DMA falls outside this range).
The DMA transfer itself appears to be working fine though, it's just that I can't poll for the end-of-DMA without it freezing?
I'm 82% sure this is a protection or mutex problem with KOS.
I'm now trying to strip down the app to the bare essentials without KOS (simple CF bootloader and GD redirection).
The app is quite bloated with unused KOS stuff (SPU,PVR,BBA etc.)
I will keep trying to get serial to work. I'll probably need to stop using the SD card and DS though.
@cybdyn - Good luck with your board. I hope I can help out with the DC stuff.
I've abandoned the FPGA for a while. Even though this syscall stuff isn't quite working yet, it's still easier to program in C than trying to debug the Verilog code.
@SWAT - Are you planning on soldering an IDE cable to your DC, or will you be working on the software for now?
Also, may I ask if you wrote your bootloader using any libraries or KOS? (I'm guessing the routines are all internal?).
OzOnE.