Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-13-2008, 08:55 AM   #1
LQ Newbie
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
Academy project: Direct Access for Serial ports and UART registers

I'm a student and I have a mini project for writing serial communication (RS232) chat program.
The environment is boreland C++ over DOS ( They all use DOSBOX under windows)

I wanted to know If I can do this thing in linux,without any emulation, (I don't mind using linux emulation so that I can use another IDE)

I managed to run something like outp(0x378,BYTE) as root .
but when I tried to access the registers with something like (0x378+1, BYTE) I got segmention fault.

Do I have to unload the serial driver or replace it by other driver in order to access the UART registers?
Many thanks.

Last edited by uprooter; 11-13-2008 at 09:01 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
testing UART ports Jurrian Linux - Newbie 5 10-14-2008 08:05 AM
Serial Driver Failing to Register all Ports of my Quad Uart bramsey123 Linux - Newbie 0 09-13-2007 10:16 AM
Speed of direct serial port access Vinter Linux - Hardware 1 08-01-2007 01:00 PM
HOWTO Access Serial Ports Using PHP? pnh73 Linux - Hardware 1 04-15-2005 11:04 AM
jpilot/serial UART? amam Linux - General 1 11-01-2001 12:16 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration