libretro / flycast

Flycast is a multiplatform Sega Dreamcast emulator. NOTE: No longer actively developed, use upstream repo for libretro from now on - https://github.com/flyinghead/flycast
http://reicast.com
GNU General Public License v2.0
152 stars 77 forks source link

serial console option doesn't seem to work ? #1187

Open ozzyyzzo4096 opened 10 months ago

ozzyyzzo4096 commented 10 months ago

i'm trying to get some debug output using printf from my code but nothing is shown into the log (only own flycast debug output) launching from command line doesn't help either. i'm using version 2.1 on win10

yevgeniy-logachev commented 5 months ago

Same question, how can I see debug logs with printf in custom KallistiOS based application?

lhsazevedo commented 2 months ago

The serial console option logs data sent to the SH4 The Serial Communication Interface (SCIF). I got this working using dc-load-serial's scif.c / scif.h, so the issue probably is not in Flycast:

(white console messages are serial output)

https://github.com/libretro/flycast/assets/7695608/851cc9b3-69ba-41cf-9b81-eb8eacc54562

Source code:

https://github.com/lhsazevedo/tokyo-bus-guide-decomp/blob/2d255da0e269bd7a34213e3df8ef83202805d511/src/015ab8_title.c#L71

https://github.com/lhsazevedo/tokyo-bus-guide-decomp/blob/2d255da0e269bd7a34213e3df8ef83202805d511/src/definitions.h#L65

flyinghead commented 2 months ago

The serial console option is only available in standalone, not in the libretro core.

PS: this github repository is no longer used. Use https://github.com/flyinghead/flycast/issues instead