help compiling serial sio tuto1

Programming examples for the Psy-Q SDK
Post Reply
dion
Interested PSXDEV User
Interested PSXDEV User
Posts: 5
Joined: November 23rd, 2016, 7:05 pm

help compiling serial sio tuto1

Post by dion » November 23rd, 2016, 7:21 pm

Hello,

i am new to this forum. i wanted to ask help for a little problem i had. i am trying to compile the sample at psyq sio tuto1 folder. as i know, there's exe file already in the folder. i renamed that exe, and compile another exe from scratch. the compilation is success, with some hint from this forum. but the problem is the exe file is a bit different with the exe file that already there in the first place.

now i am testing the exe file in a psx based platform, the original exe (the exe that already in the tuto1 folder) runs perfectly. but, the one i compiled from scratch, is not working. have been couple days searching for clue, but no luck.

btw, i attach here the exe file i compiled.

anyone can help?

thank you
Attachments
TUTO1.EXE
the exe i recompiled from scratch
(32 KiB) Downloaded 180 times

User avatar
Shadow
Admin / PSXDEV
Admin / PSXDEV
Posts: 2233
Joined: December 31st, 2012, 5:37 pm
PlayStation Model: H2000/5502

Re: help compiling serial sio tuto1

Post by Shadow » November 23rd, 2016, 8:25 pm

Please upload all the code you used and I'll compile it to check what's happening.
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

Development Computer: Windows 98, Pentium 3 [400MHz], 128MB SDRAM, DTL-H2000, DTL-H201A, 21" Sony Trinitron CRT, CD-ROM burner, 3.25" and 5.25" Floppy Diskette Drives and a ZIP 100 Diskette Drive.

dion
Interested PSXDEV User
Interested PSXDEV User
Posts: 5
Joined: November 23rd, 2016, 7:05 pm

Re: help compiling serial sio tuto1

Post by dion » November 23rd, 2016, 8:32 pm

Here they are.

Thanks
Attachments
original_tuto1.rar
original tuto1 compiled exe
(9.11 KiB) Downloaded 153 times
TUTO1.rar
my exe compiled from scratch
(21.22 KiB) Downloaded 146 times

User avatar
Shadow
Admin / PSXDEV
Admin / PSXDEV
Posts: 2233
Joined: December 31st, 2012, 5:37 pm
PlayStation Model: H2000/5502

Re: help compiling serial sio tuto1

Post by Shadow » November 23rd, 2016, 10:05 pm

TUTO1.rar works fine...
Make sure your cable is wired correctly and you have set the right baud rate on your PC.

Here I am typing "Hello World!"...
Image
Attachments
HW.png
(7.07 KiB) Downloaded 38 times
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

Development Computer: Windows 98, Pentium 3 [400MHz], 128MB SDRAM, DTL-H2000, DTL-H201A, 21" Sony Trinitron CRT, CD-ROM burner, 3.25" and 5.25" Floppy Diskette Drives and a ZIP 100 Diskette Drive.

dion
Interested PSXDEV User
Interested PSXDEV User
Posts: 5
Joined: November 23rd, 2016, 7:05 pm

Re: help compiling serial sio tuto1

Post by dion » November 23rd, 2016, 10:36 pm

Hi,

i am not running them in ps one platform, but another game platform that based on psx.
the cable is okay, since the original exe is working. i have tried to compare both exe, the one that's not working have initheap() function called in the beginning, but the original is not.

regards

User avatar
Shadow
Admin / PSXDEV
Admin / PSXDEV
Posts: 2233
Joined: December 31st, 2012, 5:37 pm
PlayStation Model: H2000/5502

Re: help compiling serial sio tuto1

Post by Shadow » November 23rd, 2016, 11:18 pm

dion wrote:i am not running them in ps one platform, but another game platform that based on psx.
Please explain in more detail...
dion wrote:the cable is okay, since the original exe is working. i have tried to compare both exe, the one that's not working have initheap() function called in the beginning, but the original is not.
Well the version you edited is working fine for me on the original hardware, so something else is wrong on your end. It sounds like something isn't being emulated correctly. Probably a FIFO buffer in the R3000A, whereas using the heap helped avoid this issue. I can't tell because I don't know what it is you're trying to do in regards to the above quote.
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

Development Computer: Windows 98, Pentium 3 [400MHz], 128MB SDRAM, DTL-H2000, DTL-H201A, 21" Sony Trinitron CRT, CD-ROM burner, 3.25" and 5.25" Floppy Diskette Drives and a ZIP 100 Diskette Drive.

dion
Interested PSXDEV User
Interested PSXDEV User
Posts: 5
Joined: November 23rd, 2016, 7:05 pm

Re: help compiling serial sio tuto1

Post by dion » November 23rd, 2016, 11:36 pm

the platform i was talking about is konami system 573.

User avatar
Shadow
Admin / PSXDEV
Admin / PSXDEV
Posts: 2233
Joined: December 31st, 2012, 5:37 pm
PlayStation Model: H2000/5502

Re: help compiling serial sio tuto1

Post by Shadow » November 24th, 2016, 12:25 am

Okay, so it has an R3000A CPU: http://www.system16.com/hardware.php?id=582

It must be that because it isn't setting up the kernel that a standard PSX uses, it's failing to output the serial data directly. How are you getting the serial data anyway from the System 573. Did you solder to the R3000A Tx and Rx pins, or does it have a header on the mainboard?
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

Development Computer: Windows 98, Pentium 3 [400MHz], 128MB SDRAM, DTL-H2000, DTL-H201A, 21" Sony Trinitron CRT, CD-ROM burner, 3.25" and 5.25" Floppy Diskette Drives and a ZIP 100 Diskette Drive.

dion
Interested PSXDEV User
Interested PSXDEV User
Posts: 5
Joined: November 23rd, 2016, 7:05 pm

Re: help compiling serial sio tuto1

Post by dion » November 24th, 2016, 12:46 am

the cpu rx tx goes to side pcb slot where usually there's security cart. it already mounted with max232 chip, so i just have to connect them.

like i said, the compiled tuto1.exe bundled with psyq 4.6, is running ok on it. so it just wierd that i tried to recompile and get different binary. well, it's not wierd anymore, but i still have to figure out how to reproduce exact binary from it.

User avatar
Shadow
Admin / PSXDEV
Admin / PSXDEV
Posts: 2233
Joined: December 31st, 2012, 5:37 pm
PlayStation Model: H2000/5502

Re: help compiling serial sio tuto1

Post by Shadow » November 24th, 2016, 2:09 am

I'm more interested to know why the pre-compiled EXE is working and the EXE I compiled is working on original hardware but it isn't for you. I will look into it later and let you know what I find :)
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

Development Computer: Windows 98, Pentium 3 [400MHz], 128MB SDRAM, DTL-H2000, DTL-H201A, 21" Sony Trinitron CRT, CD-ROM burner, 3.25" and 5.25" Floppy Diskette Drives and a ZIP 100 Diskette Drive.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest