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

More
6 years 4 months ago #171537 by nick-parker
I just need the same one from the end of the previous page, but with DPLL enabled!

The only weird part is that each stepgen needs four outputs because I'm using table mode. I can rewire things on my breadboard if this exact pinout is hard with DPLL for some reason, really I just need 3 stepgens with my weird table mode pins, 1 pwm gen, and DPLL. There's a quadrature counter enabled in the pins below just because whatever firmware I modified back in the day had it. It'd be nice to keep that because I might want to put an encoder on my spindle, but it totally doesn't matter.

Thanks so much for all your help!

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)

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

More
6 years 4 months ago #171546 by PCW
here's a shot at it:

File Attachment:

File Name: 5i25p.zip
File Size:71.55 KB

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

More
6 years 4 months ago #171625 by nick-parker
Thanks a bunch!

Latest issue: The apt repositories for Wheezy haven't got libpci-dev and I can't seem to find one online because it's so old.

I built and installed from the source [0] and that all worked without errors but the Mesaflash build still can't find pci/pci.h

I have to step away until this evening, but do you know how to fix this? Thanks again!

[0]: github.com/pciutils/pciutils

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

More
6 years 4 months ago #171663 by nick-parker
Nevermind I was being silly, this image has mesaflash built in!

I think I succeeded in flashing your new bitfile, mesaflash now thinks my 6i25 is a 5i25 and --readhmid gives me the expected pinout, however dmesg still has a different pinout with no table3, table4 pins, and when I try running my old config on the machine now the motors just jitter, which is expected behavior if only 2/4 phase pins are being driven.

This behavior didn't change after a full shut down and restart, which I did because mesaflash --reload was saying the firmware was too old to support reload. It now reloads successfully, which is more evidence I've succeeded at flashing.

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

More
6 years 4 months ago #171664 by PCW
what does

sudo mesaflash --device 5i25 --readhmid

report?

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

More
6 years 4 months ago #171665 by nick-parker
stepgen_width=4 is all that was missing from my HAL!

I've got it working as-before on your bitfile now. I haven't hooked DPLL up to the stepgens or switched to PID control mode yet, but I think that should all go smoothly now that I'm on an up to date ish system. Thank you again! I'll report back with the final performance, hopefully it can get all the way up to 100 IPM

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

Time to create page: 0.143 seconds
Powered by Kunena Forum