comp.lang.ada
 help / color / mirror / Atom feed
* GNAT serial comm  under FreeBSD - PROGRAM_ERROR raised
@ 2015-03-10  9:17 darek
  2015-03-10  9:40 ` Jacob Sparre Andersen
  0 siblings, 1 reply; 4+ messages in thread
From: darek @ 2015-03-10  9:17 UTC (permalink / 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;


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-03-10 18:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-10  9:17 GNAT serial comm under FreeBSD - PROGRAM_ERROR raised darek
2015-03-10  9:40 ` Jacob Sparre Andersen
2015-03-10 15:09   ` Simon Wright
2015-03-10 18:00     ` darek

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