Thanks, SI{AY!
Does anyone know how to get serial debug output working under KOS?
There seem to be a few different ways of doing it (dbgio / conio / scif write etc.)
I've tried the standard dbgio and conio methods, but neither of them work? (no data output)
I'm booting to DS with the SD card adapter attached. My USB-to-serial adapter is connected in parallel with the SD card (DC TX pin to USB serial RX pin).
I know the USB adapter is working because I can see the junk on the PC side while the SD card is booting.
I've tried removing the SD card once my app is running, but there is still no serial output from the DC after that point?
It's definitely not working while my app is running as I've tested it with my o'scope.
I can't see any other way of debugging this IDE adapter without proper debug output. Please help!
OzOnE.
@SWAT - My best guess about the End-of-DMA problem is that KOS is blocking register reads or something?
It looks like KOS wants you to attach a handler if you want to use the End-of-DMA interrupt.
This is what the Maple shutdown code does...
/* Hook the neccessary interrupts */
maple_state.vbl_handle = vblank_handler_add(maple_vbl_irq_hnd);
asic_evt_set_handler(ASIC_EVT_MAPLE_DMA, maple_dma_irq_hnd); asic_evt_enable(ASIC_EVT_MAPLE_DMA, ASIC_IRQ_DEFAULT);
Supposedly, you would need to use the "ASIC_EVT_GD_DMA" event code instead and add a simple handler?...
http://gamedev.allusion.net/docs/kos-cur..._evts.html
The problem is, would the interrupt handler interfere with the stock BIOS stuff once the image / binary is booted?
It would be nice to stop using KOS completely and do every at low-level. Is this what you do with your SD bootloader?
It's a bit strange that I can't just test for "SB_GDST == 0" for DMA completion?
OzOnE.