Jack Ensor wrote:
> I am having trouble getting failures on pinout.hal.  The indications in the
> error report indicate a problem with the parallel port.  When I tried changing
> the default 
> 
> loadrt hal_parport cfg="0x0378"
> 
> to my 2nd address of "0xdff0" and connecting my breakout box to the 2nd port,
> the led's on board didn't flash like they did on the first port. I then put 
> the
> box back on the first port without changing the from "0xdff0" to "0x0378" in 
> the
> pinout.hal and found that even though pinout.hal defined the port as "0xdff0"
> the signals were coming out on the first port.

Not sure what is going on there.  Personally I'd get the ports working 
first, then worry about connecting other stuff.  Which is pretty much 
what you started below:

> I thought that I could troubleshoot the problem by using hal and doing the
> following:
> 
> halrun
> loadrt hal_par_port "0x0378"

I assume hal_par_port is a typo, it should be hal_parport.
But the real problem is "0x0378".  You have it right up above, it should
be "cfg="0x0378".  Any info passed to a module when you loadrt it is 
always of the form <some-name>=<some-value>.

Another problem - when you are running EMC, it creates realtime threads.
When running standalone with halrun, it doesn't, and you need to do it 
yourself.  Add these lines:

     loadrt threads name1=foo period1=1000000
     addf parport.read-all foo
     addf parport.write-all foo
     start

The first line creates a realtime thread.  The next two add the parport
code to the thread, and the last one starts the realtime code running.
Then continue with the commands below

> newsig one bit
> linksp one parport.0.pin-2-out
> sets one TRUE
> 
> However, I get this:
> 
> [EMAIL PROTECTED]:~$ halrun
> halcmd: loadrt hal_parport "0x0378"

As I mentioned above, try with cfg="0x0378" and it should work.  To load 
the driver for both parports at the same time, use

     loadrt hal_parport cff="0x0378 0xdff0"

> insmod: error inserting
> '/usr/realtime-2.6.15-magma/modules/emc2/hal_parport.ko': -1 Unknown symbol in
> module
> HAL:1: ERROR: systemv failed, returned 1
> HAL:1: ERROR: insmod failed, returned -1
> halcmd: [EMAIL PROTECTED]:~$

Regards,

John Kasunich


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to