PKTUARTTest error
- thang
- Offline
- Elite Member
Less
More
- Posts: 196
- Thank you received: 11
14 Mar 2018 09:55 #107337
by thang
PKTUARTTest error was created by thang
Hi,
I flashed bitfile PKTUARTTest_72 that was made from PIN_PKTUARTTest_72.vhd. But when i try check firmware by command "readhmid" the terminal show me this :
How to fix it? i'm using xilinx 14.7 ISE.I took firmware src from
github.com/LinuxCNC/hostmot2-firmware/bl...N_PktUARTTest_72.vhd
I flashed bitfile PKTUARTTest_72 that was made from PIN_PKTUARTTest_72.vhd. But when i try check firmware by command "readhmid" the terminal show me this :
How to fix it? i'm using xilinx 14.7 ISE.I took firmware src from
github.com/LinuxCNC/hostmot2-firmware/bl...N_PktUARTTest_72.vhd
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23563
- Thank you received: 4859
14 Mar 2018 21:02 #107359
by andypugh
Replied by andypugh on topic PKTUARTTest error
I think you need a 2.8 version of linuxCNC for pktuart to be detected. (And I am not 100% sure that Mesaflash understands pktUART anyway, it has a separate development cycle to LinuxCNC.
Try
Try
halrun
loadrt hostmot2
loadrt hm2_pci
show pin
exit
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23563
- Thank you received: 4859
14 Mar 2018 21:04 #107360
by andypugh
Replied by andypugh on topic PKTUARTTest error
addendum: 6100 and 6500 are UART base addresses, so I think that the firmware is probably good. It's a Mesaflash version problem.
The following user(s) said Thank You: thang
Please Log in or Create an account to join the conversation.
- thang
- Offline
- Elite Member
Less
More
- Posts: 196
- Thank you received: 11
15 Mar 2018 11:01 #107367
by thang
Replied by thang on topic PKTUARTTest error
i'm using linuxcnc 2.8 on ubuntu 16.4.
loadrt hm2_pci give me this bug:
I can flash another firmware normally. Here i tried another firmware that has pktuart, it's name PIN_7I76x1_PktD_51, But there is only pktuart's pins show unkown.
Mesaflash show:
i also try change: InstStride1: integer := 64 to 16 but nothing change.
loadrt hm2_pci give me this bug:
I can flash another firmware normally. Here i tried another firmware that has pktuart, it's name PIN_7I76x1_PktD_51, But there is only pktuart's pins show unkown.
Mesaflash show:
i also try change: InstStride1: integer := 64 to 16 but nothing change.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23563
- Thank you received: 4859
15 Mar 2018 11:09 #107368
by andypugh
Replied by andypugh on topic PKTUARTTest error
It looks like there is a problem with the first firmware.
Can you try the HAL commands with the second firmware?
Can you try the HAL commands with the second firmware?
Please Log in or Create an account to join the conversation.
- thang
- Offline
- Elite Member
Less
More
- Posts: 196
- Thank you received: 11
16 Mar 2018 03:32 #107410
by thang
Replied by thang on topic PKTUARTTest error
i think pktuart has problem because in 2nd firmware every pins are normal except pktuart pin
halcmd command of 2nd firmware show:
halcmd command of 2nd firmware show:
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23563
- Thank you received: 4859
16 Mar 2018 10:55 #107417
by andypugh
Replied by andypugh on topic PKTUARTTest error
Is this error raised by a firmware downloaded from Mesa?
Please Log in or Create an account to join the conversation.
- thang
- Offline
- Elite Member
Less
More
- Posts: 196
- Thank you received: 11
16 Mar 2018 13:17 #107421
by thang
Replied by thang on topic PKTUARTTest error
no, i took both of them from here:
github.com/LinuxCNC/hostmot2-firmware/bl...N_PktUARTTest_72.vhd
then i add it into xilinx library
github.com/LinuxCNC/hostmot2-firmware/bl...N_PktUARTTest_72.vhd
then i add it into xilinx library
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23563
- Thank you received: 4859
16 Mar 2018 13:24 #107422
by andypugh
Replied by andypugh on topic PKTUARTTest error
PktUARTTest_72 is for a 72-pin board.
You have a 34-pin board (5i25) I think, so you need to use a 34 IO pin firmware:
github.com/LinuxCNC/hostmot2-firmware/bl..._PktUART1inst_34.vhd
You have a 34-pin board (5i25) I think, so you need to use a 34 IO pin firmware:
github.com/LinuxCNC/hostmot2-firmware/bl..._PktUART1inst_34.vhd
The following user(s) said Thank You: thang
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17905
- Thank you received: 4774
16 Mar 2018 13:50 - 16 Mar 2018 13:51 #107428
by PCW
Replied by PCW on topic PKTUARTTest error
Right, you need to use a pinout file (or create one) that has the correct number of pins
and the correct number of I/O ports (34 pins and 2 ports for a 5I25)
The actual driver error message is caused by using a pinout file for a device that has 3 I/O ports,
not 2 I/O ports like a 5I25
and the correct number of I/O ports (34 pins and 2 ports for a 5I25)
The actual driver error message is caused by using a pinout file for a device that has 3 I/O ports,
not 2 I/O ports like a 5I25
Last edit: 16 Mar 2018 13:51 by PCW.
The following user(s) said Thank You: thang
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.186 seconds