Using pktuart with 7i80hd

More
7 years 1 month ago #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:
Code:
#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:
Code:
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
7 years 1 month ago #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
7 years 1 month ago #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
7 years 1 month ago - 7 years 1 month ago #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:
Code:
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
Last edit: 7 years 1 month ago by sneci.

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

More
7 years 1 month ago #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
7 years 1 month ago #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.

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