Using pktuart with 7i80hd

More
7 years 4 weeks ago - 7 years 4 weeks ago #146835 by PCW
Replied by PCW on topic Using pktuart with 7i80hd
Thats UART config (not PktUART) as I mentioned, you need to change the instance stride1
or you will get an error with UART configs (and UART config will have issues with Ethernet)
Last edit: 7 years 4 weeks ago by PCW.

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

More
7 years 4 weeks ago #146894 by sneci
Replied by sneci on topic Using pktuart with 7i80hd
You're right, stride 1 is correct.

But unfortunately there were new problems.
Code:
pktuart: dlopen: /home/ls/linuxcnc/rtlib/pktuart.so: undefined symbol: hm2_hz_to_mhz
The pktuart.c component does not see the functions of hostmot2.c.

Unfortunately, I have to stop the much promising trial here. I am now solving this communication in user space. No more time now.

Thanks for the help

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

More
7 years 4 weeks ago - 7 years 4 weeks ago #146899 by PCW
Replied by PCW on topic Using pktuart with 7i80hd
I dont think you are supposed to load the pktuart module (its part of hostmot2)

(I just tested with the mesa_pkt_gyro component and it loads properly)

Untill Hal adds a array or string type, dealing with UARTs will be awkward
Last edit: 7 years 4 weeks ago by PCW.

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

More
7 years 4 weeks ago #146903 by sneci
Replied by sneci on topic Using pktuart with 7i80hd
That's really good news. I treated it as a normal hal component. I'll check it out tomorrow ...

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

More
7 years 4 weeks ago #146951 by andypugh
Replied by andypugh on topic Using pktuart with 7i80hd
You would typically write a handler component to access the pktuart.
An example is here (for UART, but the principle is the same)
github.com/LinuxCNC/linuxcnc/blob/master...ivers/mesa_uart.comp

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

More
7 years 4 weeks ago #146966 by sneci
Replied by sneci on topic Using pktuart with 7i80hd
I'm starting to think part of my problem is the realtime environment. I'm working on uspace right now. I should choose this first. Which of the three should be?

You may have seen that mesa_uart was at first try. Setup is fine, but after start error occurred:
Code:
#halcmd: hm2_eth: ERROR: used llio-> read in realtime task (addr = 0x6600)
It works fine by others, but not to me.

I was oblivious to the pktuart trial, I did it mechanically (read the documentation syndrome :). Unfortunately, I'm under pressure now, but I want to do it later.

I need to move now: xmega - usb - python - hal.

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

Moderators: PCW, jmelson
Time to create page: 0.741 seconds
Powered by Kunena Forum