Search found 7 matches

by makai
Thu Jun 28, 2007 6:05 pm
Forum: PSP Development
Topic: Potential bug in pspDebugSioSetBaud ?
Replies: 12
Views: 5179

Well, of course I'd prefer the interupt version for serial reads. But I don't see how this could be integrated into LUA, which is definitely a drawback. In MapThis it doesn't make a big difference, since updates are relatively slow. I'm working on an application where data is continuosly sent at 384...
by makai
Wed Jun 27, 2007 7:33 pm
Forum: PSP Development
Topic: Potential bug in pspDebugSioSetBaud ?
Replies: 12
Views: 5179

C-Example program to demonstrate setBaud() bug

OK, I'm done writing the example program to demonstrate the bug in pspDebugSioSetBaud() . Guess what? It's exactly as I said. Serial input works fine as long as setBaud is not called. This holds true for all applications based on the PSPSDK, inlcuding LUA. Get the example application below and see f...
by makai
Wed Jun 27, 2007 4:55 pm
Forum: PSP Development
Topic: Potential bug in pspDebugSioSetBaud ?
Replies: 12
Views: 5179

You could have..

Yes, you could have but only when using the modified LUA version. 4800 baud without 15 ms character delay is still faster than 38400 baud with 15 ms character spacing. I'm sure the same thing happens in C as long as PSPSDK is used. I'll try to write a minimal code snippet to demonstrate the effect i...
by makai
Wed Jun 27, 2007 2:55 pm
Forum: PSP Development
Topic: Potential bug in pspDebugSioSetBaud ?
Replies: 12
Views: 5179

Aware of that

I'm aware of your delay circuit and I know that this is one way to fix the problem. But how do you explain that the LUA code actually works fine (without delaying the characters) when pspDebugSioSetBaud is never called? When the serial port is opened, it's set to 4800 baud. If the port is opened wit...
by makai
Wed Jun 27, 2007 3:04 am
Forum: PSP Development
Topic: Potential bug in pspDebugSioSetBaud ?
Replies: 12
Views: 5179

To illustrate the setBaudBug

If you'd like to test it out yourself, download the zip file below. It contains two versions of the LUA player, one compiled with the call to pspDebugSioSetBaud(4800) and one without. Read the Howto.txt file included in the archive.

www.essentializer.com/BugInSetBaud.zip
by makai
Wed Jun 27, 2007 1:46 am
Forum: PSP Development
Topic: Potential bug in pspDebugSioSetBaud ?
Replies: 12
Views: 5179

Potential bug in pspDebugSioSetBaud ?

I've discovered an interesting phenomenon while compiling the LUA v0.20 player code. Since I ran into the problem of lost characters when calling sioRead() in LUA at every baud rate, I have recompiled the LUA source without the call to pspDebugSioSetBaud() that is normally executed within LUA's sioI...
by makai
Tue Jun 26, 2007 7:54 pm
Forum: PSP Lua Player Development
Topic: Problems compiling LUAPLAYER
Replies: 7
Views: 8629

Compilable LUA source

Hey youresam! Any chance you could post that link with the compilable LUA source? Or at least give a hint how to change sio.cpp so it will compile?

Thanks a lot!