Using pktuart with 7i80hd

More
30 Sep 2019 20:21 #146762 by sneci
7i80 and uart test was created by sneci
Hi,
I'm testing the uart component with a 7i80hd card. The setup runs without errors. An error message comes after the halcmd: start:
#halcmd: hm2_eth: ERROR: used llio-> read in realtime task (addr = 0x6600)
# hm2_eth: This causes additional network packets which hurts performance
...
rtapi_app: caught signal 11 - dumping core

It seems to work with hm2_pci, but hm2_eth runs here in error.
(forum.linuxcnc.org/27-driver-boards/3711...o-linuxcnc2-8#141396)
Note: Check out Andy's change in mesa_uart.comp.

Some info:
system: Linux pcb 4.9.0-8-rt-amd64 #1 SMP PREEMPT RT Debian 4.9.144-3.1 (2019-02-19) x86_64 GNU/Linux
firmware: hd_25_svstua4_12_4d.bit (forum.linuxcnc.org/27-driver-boards/3749...ile-with-uart#146551)
hal script:
loadrt hostmot2
loadrt hm2_eth board_ip="192.168.1.121" config="num_uarts=1"
loadrt mesa_uart names="hm2_7i80.0.uart.0"
loadrt threads
addf hm2_7i80.0.read thread1 
addf hm2_7i80.0.uart.0.receive thread1 
addf hm2_7i80.0.uart.0.send thread1
addf hm2_7i80.0.write thread1
start

I tried under linuxcnc-dev and from github with 2.9pre installation. The error is the same.
What do you suggest?
Thanks, sneci

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

More
30 Sep 2019 21:51 #146768 by PCW
Replied by PCW on topic 7i80 and uart test
I suspect the best solution would be to use the Packet UART instead

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

More
30 Sep 2019 22:12 #146771 by sneci
Replied by sneci on topic 7i80 and uart test
thanks, I'll see what it is :)
I know the name, but I haven't worked on it yet.

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

More
01 Oct 2019 17:30 - 01 Oct 2019 18:43 #146815 by sneci
Replied by sneci on topic Using pktuart with 7i80hd
I need some help.
I made a pin configuration with pktuart content. Editing and syntax checking is handy with Xilinx 13.4 WebPack. The code is fine, but I can't make a bit file. This project comes from mesanet.com 7i80.zip.
The bit file is created using the github hostmot2-firmware package. Downloading the generated bit file to the card comes with the same error as in the forum.linuxcnc.org/27-driver-boards/3749...25-bitfile-with-uart topic:
hm2/hm2_7i80.0: inconsistent Module Descriptor for UART Transmit Channel, not loading driver

The problem comes from the environment. The PIN file received from Peter has been processed incorrectly here.

My question is: Can Xilix WebPack generate a bit file itself?
If not, how do I generate a bit file?

Thanks,
sneci
Attachments:
Last edit: 01 Oct 2019 18:43 by sneci.

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

More
01 Oct 2019 19:43 #146824 by PCW
Replied by PCW on topic Using pktuart with 7i80hd
Yes all my bitfiles are generated with the free Webpack
Are you sure you created a PktUART config?
The error suggests you have a standard UART config
(and the standard UART needs a Top level source file tweak = instance stride1
must be set to 16 rather than 64) The PktUART needs no tweak

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

More
01 Oct 2019 20:51 #146827 by sneci
Replied by sneci on topic Using pktuart with 7i80hd
The convincing check was that I also made a bit file with your SVSTUA .. configuration. That also brought the error. It looks like the github is not compatible with mesanet packages.

Please take a look at the attached PKTUA pin configuration, I hope I didn't make a mistake.

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

More
01 Oct 2019 22:12 - 01 Oct 2019 22:30 #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: 01 Oct 2019 22:30 by PCW.

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

More
02 Oct 2019 20:14 #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.
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
02 Oct 2019 20:57 - 02 Oct 2019 21:15 #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: 02 Oct 2019 21:15 by PCW.

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

More
02 Oct 2019 21:19 #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.

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