Создать ответ 
 
Рейтинг темы:
  • Голосов: 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

Похожие темы
Тема: Автор Ответов: Просмотров: Посл. сообщение
  Dreamcast not video not audio mother va2.1 thanksss!!! Julián Ariel 3 1086 05.11.2024 08:37
Посл. сообщение: Elgor4uk
Сердце Dreamcast va2.1 Julián Ariel 3 1364 09.10.2024 06:20
Посл. сообщение: Julián Ariel
  JDownloader + YZB Collection [35GB] [CD-R]/Dreamcast aldair 0 889 24.09.2024 11:48
Посл. сообщение: aldair
  Dreamshell Serial Port SD card problem massouji 0 917 08.09.2024 22:25
Посл. сообщение: massouji
  Dreamcast with broken solder point Zarkon 1 2642 04.04.2024 23:52
Посл. сообщение: ands
  Dreamshell + SD card Serial Adapter state_product 0 2384 01.09.2023 19:30
Посл. сообщение: state_product
  Japanese dreamcast VA0 - no picture, sound and VMU Boguś 2 3392 08.08.2023 15:33
Посл. сообщение: Boguś
  Dreamcast PCBs and Schematics aldair 0 2791 10.03.2023 06:46
Посл. сообщение: aldair
  OSSC at 970p on VGA: Grandia 2 Dreamcast aldair 0 2482 10.03.2023 02:10
Посл. сообщение: aldair
  KOF96 10th anniversary Edition/Dreamcast aldair 0 2595 07.03.2023 06:56
Посл. сообщение: aldair

Переход:


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