Page 1 of 1

help compiling serial sio tuto1

Posted: November 23rd, 2016, 7:21 pm
by dion
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

Re: help compiling serial sio tuto1

Posted: November 23rd, 2016, 8:25 pm
by Shadow
Please upload all the code you used and I'll compile it to check what's happening.

Re: help compiling serial sio tuto1

Posted: November 23rd, 2016, 8:32 pm
by dion
Here they are.

Thanks

Re: help compiling serial sio tuto1

Posted: November 23rd, 2016, 10:05 pm
by Shadow
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

Re: help compiling serial sio tuto1

Posted: November 23rd, 2016, 10:36 pm
by dion
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

Re: help compiling serial sio tuto1

Posted: November 23rd, 2016, 11:18 pm
by Shadow
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.

Re: help compiling serial sio tuto1

Posted: November 23rd, 2016, 11:36 pm
by dion
the platform i was talking about is konami system 573.

Re: help compiling serial sio tuto1

Posted: November 24th, 2016, 12:25 am
by Shadow
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?

Re: help compiling serial sio tuto1

Posted: November 24th, 2016, 12:46 am
by dion
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.

Re: help compiling serial sio tuto1

Posted: November 24th, 2016, 2:09 am
by Shadow
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 :)