comp.lang.ada
 help / color / mirror / Atom feed
From: darek <darek.maksimiuk@gmail.com>
Subject: GNAT serial comm  under FreeBSD - PROGRAM_ERROR raised
Date: Tue, 10 Mar 2015 02:17:32 -0700 (PDT)
Date: 2015-03-10T02:17:32-07:00	[thread overview]
Message-ID: <3fda0da9-7a54-41f3-b226-1e4f67e08803@googlegroups.com> (raw)

Hi All,
  I have installed the AUX compiler from http://www.freshports.org/lang/gcc-aux/ (gcc version 4.9.2, 20141030)  on my FreeBSD (ver. 9.2, amd 64)  machine. The PC needs to talk to an external device via the serial port. The program compiles without any problems but at  the run-time, I got the following exception:

 raised PROGRAM_ERROR : Serial Communications not implemented

If this is a feature (due to any imaginable issues), is there any other package that  handles the serial communication under FreeBSD?

BTW, the status of the port on http://www.dragonlace.net/ is described as a "perfect". 


Cheers,
  Darek 


Test program:

with Ada.Text_IO; use Ada.Text_IO;
with GNAT.Serial_Communications; 

procedure TestSerial is

   package Serial_IO renames GNAT.Serial_Communications;
   
   Port_ID : Serial_IO.Serial_Port;
   Port_Name : Serial_IO.Port_Name(1..10) := "/dev/ttyu0";

begin
   
   Put_Line("Test  serial port");
   Serial_IO.Open(Port_ID,  Port_Name);   

   Serial_IO.Close(Port_ID);
   
end TestSerial;


             reply	other threads:[~2015-03-10  9:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-10  9:17 darek [this message]
2015-03-10  9:40 ` GNAT serial comm under FreeBSD - PROGRAM_ERROR raised Jacob Sparre Andersen
2015-03-10 15:09   ` Simon Wright
2015-03-10 18:00     ` darek
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox