help compiling serial sio tuto1

Programming examples for the Psy-Q SDK
Post Reply
dion
Interested PSXDEV User
Interested PSXDEV User
Posts: 5
Joined: Nov 23, 2016

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
You do not have the required permissions to view the files attached to this post.

User avatar
Shadow
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2670
Joined: Dec 31, 2012
PlayStation Model: H2000/5502
Discord: Shadow^PSXDEV

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), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

dion
Interested PSXDEV User
Interested PSXDEV User
Posts: 5
Joined: Nov 23, 2016

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

Here they are.

Thanks
You do not have the required permissions to view the files attached to this post.

User avatar
Shadow
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2670
Joined: Dec 31, 2012
PlayStation Model: H2000/5502
Discord: Shadow^PSXDEV

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
You do not have the required permissions to view the files attached to this post.
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

dion
Interested PSXDEV User
Interested PSXDEV User
Posts: 5
Joined: Nov 23, 2016

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
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2670
Joined: Dec 31, 2012
PlayStation Model: H2000/5502
Discord: Shadow^PSXDEV

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), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

dion
Interested PSXDEV User
Interested PSXDEV User
Posts: 5
Joined: Nov 23, 2016

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

the platform i was talking about is konami system 573.

User avatar
Shadow
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2670
Joined: Dec 31, 2012
PlayStation Model: H2000/5502
Discord: Shadow^PSXDEV

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), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

dion
Interested PSXDEV User
Interested PSXDEV User
Posts: 5
Joined: Nov 23, 2016

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
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2670
Joined: Dec 31, 2012
PlayStation Model: H2000/5502
Discord: Shadow^PSXDEV

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), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests