Mesa 7c80 RPI4b assigning pins in hal
04 Sep 2020 19:40 #180744
by hab
Mesa 7c80 RPI4b assigning pins in hal was created by hab
I used pncconfig to create a starter set. After making changes to match rpspi and 7c80 I stiil fail to bring axis up unless I comment out the offending line.
./7c80_test1.hal:34: Pin 'hm2_7c80.0.0.input-12' does not exist
14515
Stopping realtime threads
Unloading hal components
I have tried multiple variations with no success.
Does anybody have some examples of working ini and hal files for the 7c80
Attached is the linuxcnc report
./7c80_test1.hal:34: Pin 'hm2_7c80.0.0.input-12' does not exist
14515
Stopping realtime threads
Unloading hal components
I have tried multiple variations with no success.
Does anybody have some examples of working ini and hal files for the 7c80
Attached is the linuxcnc report
Please Log in or Create an account to join the conversation.
04 Sep 2020 20:09 #180746
by PCW
Replied by PCW on topic Mesa 7c80 RPI4b assigning pins in hal
There is no need to guess hal pin / parameter names
You can list all hardware pins and parameters with:
halcmd show all hm2_7c80.*
(when linuxcnc is running)
Better yet, you can redirect this list to a file so you can copy/paste from it
halcmd show all hm2_7c80.* > 7c80pins+params.txt
You can list all hardware pins and parameters with:
halcmd show all hm2_7c80.*
(when linuxcnc is running)
Better yet, you can redirect this list to a file so you can copy/paste from it
halcmd show all hm2_7c80.* > 7c80pins+params.txt
The following user(s) said Thank You: hab
Please Log in or Create an account to join the conversation.
04 Sep 2020 23:49 #180770
by hab
Replied by hab on topic Mesa 7c80 RPI4b assigning pins in hal
Thank you
I thought I remembered using a command to find the pin names but couldn't recall it.
I am having trouble with mesaflash. It can't find the 7c80. I also don't see spi devices in the dev directory. I am only running the rpspi driver.
mesaflash will read the bit files.
I thought I remembered using a command to find the pin names but couldn't recall it.
I am having trouble with mesaflash. It can't find the 7c80. I also don't see spi devices in the dev directory. I am only running the rpspi driver.
mesaflash will read the bit files.
Please Log in or Create an account to join the conversation.
05 Sep 2020 02:31 #180771
by PCW
Replied by PCW on topic Mesa 7c80 RPI4b assigning pins in hal
Here is a command that I use to read the current config on a a RPI4:
sudo mesaflash --device 7c80 --addr /dev/spidev0.0 --spi --readhmid
Note that you may need to enable the SPI device on the RPI
sudo mesaflash --device 7c80 --addr /dev/spidev0.0 --spi --readhmid
Note that you may need to enable the SPI device on the RPI
Please Log in or Create an account to join the conversation.
05 Sep 2020 19:07 #180839
by hab
Replied by hab on topic Mesa 7c80 RPI4b assigning pins in hal
enabling raspbian spi driver was the solution. At least it can be enabled and disabled without rebooting to avoid interference with hm2_rpspi.
Please Log in or Create an account to join the conversation.
05 Sep 2020 19:21 #180844
by PCW
Replied by PCW on topic Mesa 7c80 RPI4b assigning pins in hal
I haven't noticed that there is any interference
You do need a recent mesaflash to work if the SPI driver is not enabled
You do need a recent mesaflash to work if the SPI driver is not enabled
Please Log in or Create an account to join the conversation.
Time to create page: 0.076 seconds