Starting over

More
10 years 2 weeks ago #81615 by PCW
Replied by PCW on topic Starting over
Right, so the errors are in the hal axis --> stepgen mapping

The G540 FPGA config is straight forward (stepgens 0,1,2,3 map into G540 axis X,Y,Z,A)

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

More
10 years 2 weeks ago #81618 by Patrick Obrien
Replied by Patrick Obrien on topic Starting over

PCW wrote: Right, so the errors are in the hal axis --> stepgen mapping

The G540 FPGA config is straight forward (stepgens 0,1,2,3 map into G540 axis X,Y,Z,A)


How can I verify I have the correct 5i25_g540x2.bit file?

cksum 5i25_g540x2.bit
3087903293 340704 5i25_g540x2.bit

sum 5i25_g540x2.bit
17348 333

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

More
10 years 2 weeks ago - 10 years 2 weeks ago #81621 by PCW
Replied by PCW on topic Starting over
AFAIK, there are no incorrect 5i25_g540x2.bit bitfiles
( and your mesaflash readhmid listing shows the expected G540 compatible pinout )

As I said, the joint mapping error is in the HAL file
Last edit: 10 years 2 weeks ago by PCW.

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

More
10 years 2 weeks ago #81628 by Patrick Obrien
Replied by Patrick Obrien on topic Starting over

PCW wrote: As I said, the joint mapping error is in the HAL file


Thanks for that. I assumed since PNCCONF generated the file it was correct.

I did a simple test, I generated a XYZ config using PNCCONF and the axis work, X moves X ,etc. This tells me you are correct, the hal is off - it looks like a PNCCONF bug but probably a newbie snafu,

I did a diff of the two files, the XXYZ and the XYZ.

Using the XXYZ fundamentally shift the stepgen's. See the diff output enclosed.

Here is a sample:

setp hm2_5i25.0.stepgen.02.dirsetup [AXIS_1]DIRSETUP | setp hm2_5i25.0.stepgen.01.dirsetup [AXIS_1]DIRSETUP

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

More
10 years 2 weeks ago #81629 by PCW
Replied by PCW on topic Starting over
Are you saying the pncconf config is in error (does not match what you selected)?

Normally a XYZ config to maps like this
X => 0
Y => 1
Z => 2

And I would expect a XXYZ config to map like this
Xa => 0
Xb => 1
Y => 2
Z => 3

but of course the mapping of axis to stepgens is arbitrary but the created hal file
should match what you select in pncconf

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

More
10 years 2 weeks ago #81644 by Patrick Obrien
Replied by Patrick Obrien on topic Starting over

PCW wrote: And I would expect a XXYZ config to map like this
Xa => 0
Xb => 1
Y => 2
Z => 3


Ok if that is the case (Y and Z shift one plus) then the HAL is correct. Ok more digging.

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

Time to create page: 0.104 seconds
Powered by Kunena Forum