Date: Fri, 19 Sep 1997 10:20:48 +1100 From: Bill Currie Subject: Re: Serial Problems, can you help ?? In-reply-to: To: jll AT nst DOT dk, djgpp AT delorie DOT com Message-id: <199709182225.KAA11845@teleng1.tait.co.nz gatekeeper.tait.co.nz> Organization: Tait Electronics Limited MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Comments: Authenticated sender is Precedence: bulk On 18 Sep 97 at 8:56, Jorgen Lehmann wrote: > > Hi all, > > I need to do a little serial communication, using djgpp v201, > so i got the "bcsio20" package from a ftp-site and did a make.. > > It does compile nicely, but it doesn't seem to work... Hmm, interesting. There's an error in both the documentation and term.c (?). I misspelt `constructor' in the constructor function (search for `__attribute__'. > > Even the example programs gives an error message saying something > like: > > Exiting due to signal SIGILL > Invalid Opcode at eip=0000b584 > ... > > ... > ... program=C:\SERIAL\TEST\STL\TERM.EXE > ... > > ... You shouldn't have snipped the stuff, it's very important for debugging. However I think I know what you're problem is. Did you delete the supplied serio.o file? There's a bug in gas that causes problems with my serial port code. There are two ways to fix this: comment out the `.text. lines in serio.o, or patch gas (the patch (for gas from bintuils 2.8.1) is supplied in the zip file, or I can mail you the fixed as.exe). You realy should read the docs. This problem is mentioned in them (near the bottom of serio.doc). > > After this i tried the "aeasy" package from a "1tk" directory > but I got the same results :-( 2.x and 1.x code is not necesarily compatable (especialy driver code). > > Am I doing something wrong here ?? Only deleteing serio.o :) > Should I use another library, and which one ?? There are a couple of others, but I can't say anything about how good they are (I've never looked at them). To be honest, I'ld prefer if you stuck with bcsio20, because it would make me feel better (I'm biased as it's author, of course:). > > I'd appreciate your help I hope I've been of some help. Bill -- Leave others their otherness.