Mesa 7i92 bit file help

More
29 Aug 2018 18:30 - 29 Aug 2018 18:32 #116804 by PCW
Replied by PCW on topic Mesa 7i92 bit file help
That's correct, you cannot set the state of an input pin, only output pins
All GPIO pins default to input mode at startup and must be set to output mode in the hal file,
you set a GPIO to output mode by setting its is_output parameter like:

setp hm2_7i92.0.gpio.025.is_output true

Also unless you disable the additional stepgens/encoders/pwmgens on P1 as indicated above
you will not have full GPIO access as some pins will be "owned" by stepgens, pwmgens, or encoders.

Here's what I get on LinuxCNC startup with only P2s stepgens etc enabled:

File Attachment:

File Name: pins_2018-08-29.txt
File Size:2 KB


Note that all of P1's I/O are just GPIO (IOPort)
Attachments:
Last edit: 29 Aug 2018 18:32 by PCW. Reason: tripe'Os

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

More
29 Aug 2018 19:21 #116813 by Clive S
Replied by Clive S on topic Mesa 7i92 bit file help

Also unless you disable the additional stepgens/encoders/pwmgens on P1 as indicated above
you will not have full GPIO access as some pins will be "owned" by stepgens, pwmgens, or encoders.


Did this not disable the stepgens etc [ num_encoders=1 num_stepgens=5 and num_pwmgens=1 ]

as that is what I thought you meant.

Many thanks for the continued help with this. I am learning all the time

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

More
29 Aug 2018 19:33 - 29 Aug 2018 19:33 #116815 by PCW
Replied by PCW on topic Mesa 7i92 bit file help
It should as long as you have it in the right place in the hal or ini file but your pin listing did not show this

A better way to check this is to list the pins/parameters with halcmd:
halcmd show all | grep 7i92 > all7i92stuff.txt
Last edit: 29 Aug 2018 19:33 by PCW.
The following user(s) said Thank You: Clive S

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

More
30 Aug 2018 08:04 #116839 by Clive S
Replied by Clive S on topic Mesa 7i92 bit file help

It should as long as you have it in the right place in the hal or ini file but your pin listing did not show this

A better way to check this is to list the pins/parameters with halcmd:
halcmd show all | grep 7i92 > all7i92stuff.txt


Yes this look better (attached)

Regarding this :- Attached . On P1 I017 - 30 - 31 - 32 - 33 - 20 - 22 I measure 5 v to ground.

Should I not see 5v on the other 10 pins on P1?





File Attachment:

File Name: pinout_7i9...g_30.txt
File Size:4 KB
Attachments:

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

More
30 Aug 2018 12:29 #116846 by PCW
Replied by PCW on topic Mesa 7i92 bit file help
I would expect to see 5V on all P1 pins, but your list shows that you have not disabled the special functions on P1 (so the "num_stepgens = 5 num_pwmgens=1 num_encoders=1" token is not being used)

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

More
30 Aug 2018 13:45 #116856 by Clive S
Replied by Clive S on topic Mesa 7i92 bit file help

I would expect to see 5V on all P1 pins, but your list shows that you have not disabled the special functions on P1 (so the "num_stepgens = 5 num_pwmgens=1 num_encoders=1" token is not being used)


The "num_stepgens = 5 num_pwmgens=1 num_encoders=1" is in the ini file and in the PP log it shows that it has used that string.

i am using the 7i92_C11Gx2D.bit file

Can the other pins that don't have 5v on them still be used in any way?

Thanks for the info

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

More
30 Aug 2018 14:07 - 30 Aug 2018 14:08 #116865 by PCW
Replied by PCW on topic Mesa 7i92 bit file help
what does:
halcmd show param hm2_7i92*
show

If the P1 pins are low when unconnected this means that the config string was _not_ used

Also if the is_output parameter is not present for all of P1's pins (GPIO016 through GPIO 033) this also means the the config tokens were not used
Last edit: 30 Aug 2018 14:08 by PCW.

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

More
30 Aug 2018 14:30 #116869 by Clive S
Replied by Clive S on topic Mesa 7i92 bit file help

what does:
halcmd show param hm2_7i92*
show

If the P1 pins are low when unconnected this means that the config string was _not_ used

Also if the is_output parameter is not present for all of P1's pins (GPIO016 through GPIO 033) this also means the the config tokens were not used


Very strange . In this state does that mean they can't be used?

Attached

File Attachment:

File Name: 7i92_param.txt
File Size:4 KB
Attachments:

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

More
30 Aug 2018 15:21 #116876 by PCW
Replied by PCW on topic Mesa 7i92 bit file help
No, they cannot be used because all the secondary functions on P1 are still enabled
(you can see this in your parameter list, most of the is_output_ attributes are missing on P1 pins)

This points to a hal/ini file problem with the driver config line
The following user(s) said Thank You: Clive S

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

More
31 Aug 2018 07:44 #116899 by Clive S
Replied by Clive S on topic Mesa 7i92 bit file help

No, they cannot be used because all the secondary functions on P1 are still enabled
(you can see this in your parameter list, most of the is_output_ attributes are missing on P1 pins)

This points to a hal/ini file problem with the driver config line

Ok I have attached the -- hal -- ini -- PP log file -- show param -- show pin

If you get the time would you mind looking over them to see where I am going wrong.

File Attachment:

File Name: tormach_mi...8-31.hal
File Size:27 KB

File Attachment:

File Name: tormach_11...7i92.ini
File Size:7 KB

File Attachment:

File Name: showpinfile.txt
File Size:94 KB

File Attachment:

File Name: showparam.txt
File Size:20 KB

File Attachment:

File Name: PPlogfile31Aug.txt
File Size:26 KB

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

Time to create page: 0.655 seconds
Powered by Kunena Forum