issues with cio dio24h board

More
17 Aug 2011 23:14 - 17 Aug 2011 23:15 #12565 by andypugh
I wonder if it is funky line-endings from the forum?

I have attached the current version of the driver (which I pushed to the main branch a few days ago, so I hope it works)

File Attachment:

File Name: pcl720-b84...e3b.comp
File Size:4 KB
Attachments:
Last edit: 17 Aug 2011 23:15 by andypugh.

Please Log in or Create an account to join the conversation.

More
17 Aug 2011 23:16 #12566 by patburden
BigJohnT wrote:

Can you copy one of the example comps from the manual to a directory and get that to compile?

www.linuxcnc.org/docview/html/hal_comp.html

John


I will read thru all this and give it a try
I read in another thread that I should add it to my Hal file
I haven't quite figured that out yet but I am still reading and making progress
Thanks for the help.

Please Log in or Create an account to join the conversation.

More
17 Aug 2011 23:22 #12567 by BigJohnT
You do have to get it to compile first then add it to your HAL file.

Just do a simple one from the manual and get the compile part down then do the one Andy added.

John

Please Log in or Create an account to join the conversation.

More
18 Aug 2011 22:40 - 18 Aug 2011 22:49 #12603 by patburden
Ok I did all the examples - "rand.comp" ran fine all others except "out8.comp" gave warnings - undefined
"out8.comp" gave warnings and errors.

I then ran the one Andy posted. and I got this

/Desktop$ sudo comp --install pcl720.comp
make -C /usr/src/linux-headers-2.6.24-16-rtai SUBDIRS=`pwd` CC=gcc V=0 -o /Module.symvers modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-rtai'
CC [M] /tmp/tmp_ICNMA/pcl720.o
pcl720.comp: In function ‘reset’:
pcl720.comp:93: warning: unused variable ‘deadline’
Building modules, stage 2.
MODPOST 1 modules
WARNING: "rtapi_delay" [/tmp/tmp_ICNMA/pcl720.ko] undefined!
WARNING: "rtapi_get_time" [/tmp/tmp_ICNMA/pcl720.ko] undefined!
WARNING: "hal_ready" [/tmp/tmp_ICNMA/pcl720.ko] undefined!
WARNING: "hal_export_funct" [/tmp/tmp_ICNMA/pcl720.ko] undefined!
WARNING: "hal_param_bit_newf" [/tmp/tmp_ICNMA/pcl720.ko] undefined!
WARNING: "hal_param_u32_newf" [/tmp/tmp_ICNMA/pcl720.ko] undefined!
WARNING: "hal_pin_u32_newf" [/tmp/tmp_ICNMA/pcl720.ko] undefined!
WARNING: "hal_pin_bit_newf" [/tmp/tmp_ICNMA/pcl720.ko] undefined!
WARNING: "rtapi_print" [/tmp/tmp_ICNMA/pcl720.ko] undefined!
WARNING: "hal_malloc" [/tmp/tmp_ICNMA/pcl720.ko] undefined!
WARNING: "rtapi_snprintf" [/tmp/tmp_ICNMA/pcl720.ko] undefined!
WARNING: "hal_init" [/tmp/tmp_ICNMA/pcl720.ko] undefined!
WARNING: "hal_exit" [/tmp/tmp_ICNMA/pcl720.ko] undefined!
CC /tmp/tmp_ICNMA/pcl720.mod.o
LD [M] /tmp/tmp_ICNMA/pcl720.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-rtai'
cp pcl720.ko /usr/realtime-2.6.24-16-rtai/modules/emc2/

I read in another post that I can ignore these warnings.

I also ran this and got a list pin properties
halrun
loadrt pcl720 ioaddr=0x300
loadrt threads
addf pcl720.0.write thread1
start
show pin
show thread
show funct

So if I am understanding things right - this compiled and I am on to the next step
which is to add it to my hal file-
Thanks for all your help.
Last edit: 18 Aug 2011 22:49 by patburden.

Please Log in or Create an account to join the conversation.

More
18 Aug 2011 22:55 - 18 Aug 2011 22:56 #12604 by BigJohnT
patburden wrote:

So if I am understanding things right - this compiled and I am on to the next step
which is to add it to my hal file-
Thanks for all your help.


Yep, you made it :)

If you add it in small chunks and test that it loads after each addition you can be sure you didn't slip in a typo or some other mistake. This make troubleshooting much easier.

John
Last edit: 18 Aug 2011 22:56 by BigJohnT.

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.092 seconds
Powered by Kunena Forum