gnupic: PIC Programmers
Subject:
Re: PIC Programmers
From:
Rick Mann ####@####.####
Date:
22 Sep 2002 00:42:06 -0000
Message-Id: <B9B25DA6.D541%rmann@latencyzero.com>
on 9/21/02 1:12 PM, Byron A Jeff at ####@####.#### wrote:
> I'll bet money that a couple of simple changes in the ioctl for the program
> will
> be all that's required to get it going.
Okay, so I got tm4 to compile by changing the #include <termio.h> to
#include <termios.h> and changing the constant TCSBRK, which was undefined,
on line 1603 to TIOCSBRK.
The code executes, and if I do:
[arrow:~/Desktop/Downloads/tm4-13 2] rmann% ./tm4 -c 16f877 -R
I get:
TM4: Linux PIC Programmer version 1.3 of Sat Sep 21 16:32:07 PDT 2002
Programmer port = /dev/pic
PIC chip type = 16f877
Initializing programmer...read failed: wanted 1 got 0 error 0
Now, I use a Keyspan USB-to-serial adapter, which presents itself as two
devices:
/dev/cu.USA19QI11P1.1 and /devg/tty.USA19QI11P1.1
/dev/pic is linked to /dev/cu.USA19QI11P1.1
If I try the other one, it hangs trying to open the port.
I'm a pretty decent Mac programmer, but know very little about POSIX & BSD.
Can anyone shed light on this?
TIA,
--
Rick