DC 9.50 Serial Support in Wine (linux)

Started by Matt Thompson March 26, 2007
Hi,

I am attempting to get DC 9.50 serial support working in wine under
Linux. I have tried before with DC 9.21, with the same problem.

I am trying with RFU right now, with processor verification disabled,
tried different baud rates and stop bit settings.

Sending Cold loader appears to work.

Shortly after it stars Sending Pilot BIOS, I get this error:

"An internal error in the target communication connection has occured."
It shows 6390 bytes sent in RFU.

I have had this working in VMware running Windows XP, however I just got
a new laptop (my old one is dead), and it's not licensed to run XP.
Since I do all my work in Linux, I use it as the sole OS on the machine,
and I need to be able to use it to program rabbit boards in the field.

The compiler/editor portion of DC 9.50 works perfectly under wine, and
much faster and sleeker looking I might add.
I have not run RFU with the wine debugging env vars set yet, however I
suspect it has to do with broken control line support under wine.

Does anyone know of an alternative to programming a target other than
RFU/DC IDE? Win32 or Linux. Maybe another win32 alternative works
happily under wine.
Does anyone have some pointers as to where to find any documentation
describing the protocols used to program a target?

Thanks in advance,

Matt Thompson
Lochisle Inc.
http://www.lochisle.com
Sounds like you need more wine.

----- Original Message ----
From: Matt Thompson
To: r...
Sent: Monday, March 26, 2007 12:58:07 PM
Subject: [rabbit-semi] DC 9.50 Serial Support in Wine (linux)

Hi,

I am attempting to get DC 9.50 serial support working in wine under

Linux. I have tried before with DC 9.21, with the same problem.

I am trying with RFU right now, with processor verification disabled,

tried different baud rates and stop bit settings.

Sending Cold loader appears to work.

Shortly after it stars Sending Pilot BIOS, I get this error:

"An internal error in the target communication connection has occured."

It shows 6390 bytes sent in RFU.

I have had this working in VMware running Windows XP, however I just got

a new laptop (my old one is dead), and it's not licensed to run XP.

Since I do all my work in Linux, I use it as the sole OS on the machine,

and I need to be able to use it to program rabbit boards in the field.

The compiler/editor portion of DC 9.50 works perfectly under wine, and

much faster and sleeker looking I might add.

I have not run RFU with the wine debugging env vars set yet, however I

suspect it has to do with broken control line support under wine.

Does anyone know of an alternative to programming a target other than

RFU/DC IDE? Win32 or Linux. Maybe another win32 alternative works

happily under wine.

Does anyone have some pointers as to where to find any documentation

describing the protocols used to program a target?

Thanks in advance,

Matt Thompson

Lochisle Inc.

http://www.lochisle .com
Hi everyone,

I submitted a patch to WineHQ that fixes the serial support for Dynamic
C for anyone who has been burdened with having to dual boot into windows
just to program the rabbit. The patch can be found here:
http://bugs.winehq.org/show_bug.cgi?idG53

NOTE: The FTDI usb serial converter will *not* work directly with this
patch, at least not with 2.6.20 kernel. This is due to the lack of the
TIOCGICOUNT ioctl by the driver, which wine relies on.

I have also created a kernel driver patch for the FTDI driver to work,
if anyone is interested let me know.

Cheers,

Matt Thompson
Lochisle Inc.
http://www.lochisle.com
http://bugs.winehq.org/show_bug.cgi?idG53

Matt Thompson wrote:
>
> Hi,
>
> I am attempting to get DC 9.50 serial support working in wine under
> Linux. I have tried before with DC 9.21, with the same problem.
>
> I am trying with RFU right now, with processor verification disabled,
> tried different baud rates and stop bit settings.
>
> Sending Cold loader appears to work.
>
> Shortly after it stars Sending Pilot BIOS, I get this error:
>
> "An internal error in the target communication connection has occured."
> It shows 6390 bytes sent in RFU.
>
> I have had this working in VMware running Windows XP, however I just got
> a new laptop (my old one is dead), and it's not licensed to run XP.
> Since I do all my work in Linux, I use it as the sole OS on the machine,
> and I need to be able to use it to program rabbit boards in the field.
>
> The compiler/editor portion of DC 9.50 works perfectly under wine, and
> much faster and sleeker looking I might add.
> I have not run RFU with the wine debugging env vars set yet, however I
> suspect it has to do with broken control line support under wine.
>
> Does anyone know of an alternative to programming a target other than
> RFU/DC IDE? Win32 or Linux. Maybe another win32 alternative works
> happily under wine.
> Does anyone have some pointers as to where to find any documentation
> describing the protocols used to program a target?
>
> Thanks in advance,
>
> Matt Thompson
> Lochisle Inc.
> http://www.lochisle.com
RFU source (Borland C) used to be available free of charge, upon signing of
NDA. As far as I know, it's being sold not, for "nominal charge".

I was able to strip down RFU (version shipped with DC 7.3x) down to a level
where cross-compiling on Linux was possible (I used Kylix for that).
However, remaining work was done by the customer itself, and I am not aware
of results.

Hope this helps,

On 26 Mar 2007 12:58:07 -0700, Matt Thompson
wrote:
>
> Hi,
>
> I am attempting to get DC 9.50 serial support working in wine under
> Linux. I have tried before with DC 9.21, with the same problem.
>
> I am trying with RFU right now, with processor verification disabled,
> tried different baud rates and stop bit settings.
>
> Sending Cold loader appears to work.
>
> Shortly after it stars Sending Pilot BIOS, I get this error:
>
> "An internal error in the target communication connection has occured."
> It shows 6390 bytes sent in RFU.
>
> I have had this working in VMware running Windows XP, however I just got
> a new laptop (my old one is dead), and it's not licensed to run XP.
> Since I do all my work in Linux, I use it as the sole OS on the machine,
> and I need to be able to use it to program rabbit boards in the field.
>
> The compiler/editor portion of DC 9.50 works perfectly under wine, and
> much faster and sleeker looking I might add.
> I have not run RFU with the wine debugging env vars set yet, however I
> suspect it has to do with broken control line support under wine.
>
> Does anyone know of an alternative to programming a target other than
> RFU/DC IDE? Win32 or Linux. Maybe another win32 alternative works
> happily under wine.
> Does anyone have some pointers as to where to find any documentation
> describing the protocols used to program a target?
>
> Thanks in advance,
>
> Matt Thompson
> Lochisle Inc.
> http://www.lochisle.com
>