Создать ответ 
 
Рейтинг темы:
  • Голосов: 1 - Средняя оценка: 5
  • 1
  • 2
  • 3
  • 4
  • 5
Connecting IDE disks & ISA (network) card to Dreamcast
Автор Сообщение
OzOnE Не на форуме
Пользователь
**

Сообщений: 65
Зарегистрирован: 20.07.2012
Рейтинг: 1
Сказал спасибо: 0
Поблагодарили 6 раз(а) в 5 сообщ.
Сообщение: #16
RE: Connecting IDE disks & ISA (network) card to Dreamcast
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.
(Последний раз сообщение было отредактировано 24.08.2012 в 22:31, отредактировал пользователь OzOnE.)
24.08.2012 22:22
Найти все сообщения Цитировать это сообщение
Создать ответ 


Сообщения в этой теме
RE: Connecting IDE disks & ISA (network) card to Dreamcast - OzOnE - 24.08.2012 22:22

Похожие темы
Тема: Автор Ответов: Просмотров: Посл. сообщение
  Dreamshell + SD card Serial Adapter state_product 0 1194 01.09.2023 19:30
Посл. сообщение: state_product
  Japanese dreamcast VA0 - no picture, sound and VMU Boguś 2 1554 08.08.2023 15:33
Посл. сообщение: Boguś
  Dreamcast PCBs and Schematics aldair 0 1646 10.03.2023 06:46
Посл. сообщение: aldair
  OSSC at 970p on VGA: Grandia 2 Dreamcast aldair 0 1443 10.03.2023 02:10
Посл. сообщение: aldair
  KOF96 10th anniversary Edition/Dreamcast aldair 0 1442 07.03.2023 06:56
Посл. сообщение: aldair
  Samurai Shodown - hbmame / Dreamcast aldair 0 1510 25.02.2023 18:34
Посл. сообщение: aldair
  Bitfunx Ossc: full screen in all games (16X9) / Dreamcast aldair 0 1684 22.02.2023 01:58
Посл. сообщение: aldair
  DVD on Sega Dreamcast.Coming soon! aldair 0 1984 20.02.2023 17:12
Посл. сообщение: aldair
  Code: Veronica/ Showing 3D of the game in high quality on Led TV/ Dreamcast aldair 0 1755 19.02.2023 17:59
Посл. сообщение: aldair
  Solução definitiva para jogos RGB em cabo-VGA/Sega Dreamcast. aldair 0 1576 18.02.2023 18:05
Посл. сообщение: aldair

Переход:


Пользователи просматривают эту тему: 1 Гость(ей)