Following errors at fairly low speeds with mesa 5i25? Also bad latency (120k)

More
6 years 4 months ago #170902 by PCW
You could also just run

sudo mesaflash --device 5i25 --readhmid > mypinout.txt

and post mypinout.txt here

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

More
6 years 4 months ago #170905 by nick-parker
Ooh thanks! I just gave that a shot:

First it complained that --readhmid was an unrecognized option. The help text says `--hm2 write all hostmot2 info in PIN file format` which sounded like what you wanted.

That complained `Error: Selected board 5I25 not found.` so I checked scanpci and turns out I have a 6i25.

I tried it with 6i25 and I got a ton of duplicates of this:
```
Module: (unknown-gtag-72)
There are 191 of (unknown-gtag-72) in configuration
Version: 22
Registers: 4
BaseAddress: AD10
ClockFrequency: 22
ClockFrequency: 2.146 MHz
```

Then
```
Configuration pin-out:
Segmentation Fault
```

I'm really wondering if I shouldn't just start fresh. I know what all the signals coming out need to look like quite well, so I'm going to do some reading on hostmot2 table mode with an unmodified 6i25 and see if I can sort out what I did back then.

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

More
6 years 4 months ago #170906 by PCW
Might be an ancient copy of mesaflash
current is here:
github.com/LinuxCNC/mesaflash

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

More
6 years 4 months ago - 6 years 4 months ago #170909 by nick-parker
Ah yep that worked! I had the mistaken notion that upgrading mesaflash would mean losing whatever archaic version I had - which I might want next week when I find my source - but obviously I was able to just build the new one in a separate folder.

Here's the output:
```
Configuration Name: HOSTMOT2

General configuration information:

BoardName : MESA6I25
FPGA Size: 9 KGates
FPGA Pins: 144
Number of IO Ports: 2
Width of one I/O port: 17
Clock Low frequency: 66.6667 MHz
Clock High frequency: 200.0000 MHz
IDROM Type: 3
Instance Stride 0: 4
Instance Stride 1: 64
Register Stride 0: 256
Register Stride 1: 256

Modules in configuration:

Module: WatchDog
There are 1 of WatchDog in configuration
Version: 0
Registers: 3
BaseAddress: 0C00
ClockFrequency: 66.667 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes

Module: IOPort
There are 2 of IOPort in configuration
Version: 0
Registers: 5
BaseAddress: 1000
ClockFrequency: 66.667 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes

Module: QCount
There are 1 of QCount in configuration
Version: 2
Registers: 5
BaseAddress: 3000
ClockFrequency: 66.667 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes

Module: StepGen
There are 7 of StepGen in configuration
Version: 2
Registers: 10
BaseAddress: 2000
ClockFrequency: 66.667 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes

Module: PWM
There are 2 of PWM in configuration
Version: 0
Registers: 5
BaseAddress: 4000
ClockFrequency: 200.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes

Module: LED
There are 1 of LED in configuration
Version: 0
Registers: 1
BaseAddress: 0200
ClockFrequency: 66.667 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes

Configuration pin-out:

IO Connections for P3
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir

1 0 IOPort None
14 1 IOPort PWM 0 PWM (Out)
2 2 IOPort StepGen 0 Step/Table1 (Out)
15 3 IOPort None
3 4 IOPort StepGen 0 Dir/Table2 (Out)
16 5 IOPort PWM 0 Dir (Out)
4 6 IOPort StepGen 0 Table3 (Out)
17 7 IOPort None
5 8 IOPort StepGen 0 Table4 (Out)
6 9 IOPort StepGen 1 Step/Table1 (Out)
7 10 IOPort StepGen 1 Dir/Table2 (Out)
8 11 IOPort StepGen 1 Table3 (Out)
9 12 IOPort StepGen 1 Table4 (Out)
10 13 IOPort StepGen 2 Step/Table1 (Out)
11 14 IOPort StepGen 2 Dir/Table2 (Out)
12 15 IOPort StepGen 2 Table3 (Out)
13 16 IOPort StepGen 2 Table4 (Out)

IO Connections for P2
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir

1 17 IOPort None
14 18 IOPort PWM 1 PWM (Out)
2 19 IOPort StepGen 3 Step/Table1 (Out)
15 20 IOPort None
3 21 IOPort StepGen 3 Dir/Table2 (Out)
16 22 IOPort PWM 1 Dir (Out)
4 23 IOPort StepGen 4 Step/Table1 (Out)
17 24 IOPort None
5 25 IOPort StepGen 4 Dir/Table2 (Out)
6 26 IOPort StepGen 5 Step/Table1 (Out)
7 27 IOPort StepGen 5 Dir/Table2 (Out)
8 28 IOPort StepGen 6 Step/Table1 (Out)
9 29 IOPort StepGen 6 Dir/Table2 (Out)
10 30 IOPort None
11 31 IOPort QCount 0 Quad-A (In)
12 32 IOPort QCount 0 Quad-B (In)
13 33 IOPort QCount 0 Quad-IDX (In)
```
Last edit: 6 years 4 months ago by nick-parker. Reason: Put output in code block

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

More
6 years 4 months ago #171525 by nick-parker
Do you have time to help me with firmware generation PCW? I installed a fresh SSD drive in my computer and put the latest 2.7 Wheezy ISO on it. I've got a config generated with PID control from pncconf now, but I think I flashed a random new firmware by accident in the process and now LinuxCNC is giving me HAL errors for just about every line of the firmware. I still haven't got my hands on that old laptop with my source from 6 years ago, might be another few weeks before I can get it shipped cross country.

I have the Xilinx toolchain latest 13.x version installed but when I try to run make in the hostmot2-firmware git folder I get `IOError: [Errno 2] No such file or directory: 'work.bit'`

Maybe because I used a webpack license instead of the 30 day free trial? My laptop uses a dongle Ethernet adapter and they seemed to not like that as a NIC when I tried to get a 30 day license. Which, fair. One dongle a month would be way cheaper than their license I'm guessing.

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

More
6 years 4 months ago #171527 by PCW
I'm using the free webpack version 14.7 on Linux and don't have any serious issues
What pinout do you need?

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

Time to create page: 0.060 seconds
Powered by Kunena Forum