7c80 no communication between rpspi 4
29 Aug 2024 21:04 - 29 Aug 2024 21:10 #308972
by Mr_rookie
7c80 no communication between rpspi 4 was created by Mr_rookie
Hi guys!!
have some problem with my rpspi4 and linuxcnc with 7c80.
Linux pi 6.6.44-rt39 #1 SMP PREEMPT_RT Mon Aug 12 21:10:13 AEST 2024 aarch64 GNU/Linux. I spoke with a person from mesa, he told that spi is disable, i tried to enable on /boot/firmware/config.txt and change # uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on
This is the file I installed rpi-4-debian-bookworm-6.6.44-rt39-arm64-ext4-2024-08-12-2149.img.xz
halcmd setp hm2_7c80.0.led.CR02 TRUE
nothing happen in the board, no light come on
or even the output light come on.
used linuxcnc because I want to use vismach bc I want to configure a 5 axis machine but haven't find much information on it.sudo mesaflash --device 7c80 --addr /dev/spidev0.0 --spi --readhmid
open: No such file or directory
No 7C80 board found
halcmd loadrt hostmot2
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
halcmd loadrt hm2_rpspi
hm2/hm2_7c80.0: Low Level init 0.15
hm2/hm2_7c80.0: Smart Serial Firmware Version 43
hm2/hm2_7c80.0: 54 I/O Pins used:
hm2/hm2_7c80.0: IO Pin 000 (TB07-02/TB07-03): StepGen #0, pin Step (Output)
hm2/hm2_7c80.0: IO Pin 001 (TB07-04/TB07-05): StepGen #0, pin Direction (Output)
hm2/hm2_7c80.0: IO Pin 002 (TB08-02/TB08-03): StepGen #1, pin Step (Output)
hm2/hm2_7c80.0: IO Pin 003 (TB08-04/TB08-05): StepGen #1, pin Direction (Output)
hm2/hm2_7c80.0: IO Pin 004 (TB09-02/TB09-03): StepGen #2, pin Step (Output)
hm2/hm2_7c80.0: IO Pin 005 (TB09-04/TB09-05): StepGen #2, pin Direction (Output)
hm2/hm2_7c80.0: IO Pin 006 (TB10-02/TB10-03): StepGen #3, pin Step (Output)
hm2/hm2_7c80.0: IO Pin 007 (TB10-04/TB10-05): StepGen #3, pin Direction (Output)
hm2/hm2_7c80.0: IO Pin 008 (TB11-02/TB11-03): StepGen #4, pin Step (Output)
hm2/hm2_7c80.0: IO Pin 009 (TB11-04/TB11-05): StepGen #4, pin Direction (Output)
hm2/hm2_7c80.0: IO Pin 010 (TB12-02/TB12-03): StepGen #5, pin Step (Output)
hm2/hm2_7c80.0: IO Pin 011 (TB12-04/TB12-05): StepGen #5, pin Direction (Output)
hm2/hm2_7c80.0: IO Pin 012 (TB03-03/TB04-04): IOPort
hm2/hm2_7c80.0: IO Pin 013 (TB03-05/TB04-06): IOPort
hm2/hm2_7c80.0: IO Pin 014 (TB03-05/TB03-06): IOPort
hm2/hm2_7c80.0: IO Pin 015 (TB04-01/TB04-02): Encoder #0, pin A (Input)
hm2/hm2_7c80.0: IO Pin 016 (TB04-04/TB04-05): Encoder #0, pin B (Input)
hm2/hm2_7c80.0: IO Pin 017 (TB04-07/TB04-08): Encoder #0, pin Index (Input)
hm2/hm2_7c80.0: IO Pin 018 (TB05-02): PWMGen #0, pin Out0 (PWM or Up) (Output)
hm2/hm2_7c80.0: IO Pin 019 (TB05-02): PWMGen #0, pin Not-Enable (Output)
hm2/hm2_7c80.0: IO Pin 020 (TB05-05/TB05-06): IOPort
hm2/hm2_7c80.0: IO Pin 021 (TB05-07/TB05-08): IOPort
hm2/hm2_7c80.0: IO Pin 022 (Internal InMux0): InMux Input Mux #0, pin addr0 (Output)
hm2/hm2_7c80.0: IO Pin 023 (Internal InMux1): InMux Input Mux #0, pin addr1 (Output)
hm2/hm2_7c80.0: IO Pin 024 (Internal InMux2): InMux Input Mux #0, pin addr2 (Output)
hm2/hm2_7c80.0: IO Pin 025 (Internal InMux3): InMux Input Mux #0, pin addr3 (Output)
hm2/hm2_7c80.0: IO Pin 026 (Internal InMux4): InMux Input Mux #0, pin addr4 (Output)
hm2/hm2_7c80.0: IO Pin 027 (Internal InMuxData): InMux Input Mux #0, pin muxdata (Input)
hm2/hm2_7c80.0: IO Pin 028 (TB13-01/TB13-02): SSR #0, pin Out-00 (Output)
hm2/hm2_7c80.0: IO Pin 029 (TB13-03/TB13-04): SSR #0, pin Out-01 (Output)
hm2/hm2_7c80.0: IO Pin 030 (TB13-05/TB13-06): SSR #0, pin Out-02 (Output)
hm2/hm2_7c80.0: IO Pin 031 (TB13-07/TB13-08): SSR #0, pin Out-03 (Output)
hm2/hm2_7c80.0: IO Pin 032 (TB14-01/TB14-02): SSR #0, pin Out-04 (Output)
hm2/hm2_7c80.0: IO Pin 033 (TB14-03/TB14-04): SSR #0, pin Out-05 (Output)
hm2/hm2_7c80.0: IO Pin 034 (TB14-05/TB14-06): SSR #0, pin Out-06 (Output)
hm2/hm2_7c80.0: IO Pin 035 (TB14-07/TB14-08): SSR #0, pin Out-07 (Output)
hm2/hm2_7c80.0: IO Pin 036 (Internal SSR): SSR #0, pin AC Ref (internal) (Output)
hm2/hm2_7c80.0: IO Pin 037 (P1-01/DB25-01): PWMGen #1, pin Out0 (PWM or Up) (Output)
hm2/hm2_7c80.0: IO Pin 038 (P1-02/DB25-14): IOPort
hm2/hm2_7c80.0: IO Pin 039 (P1-03/DB25-02): StepGen #6, pin Step (Output)
hm2/hm2_7c80.0: IO Pin 040 (P1-04/DB25-15): IOPort
hm2/hm2_7c80.0: IO Pin 041 (P1-05/DB25-03): StepGen #6, pin Direction (Output)
hm2/hm2_7c80.0: IO Pin 042 (P1-06/DB25-16): IOPort
hm2/hm2_7c80.0: IO Pin 043 (P1-07/DB25-04): StepGen #7, pin Step (Output)
hm2/hm2_7c80.0: IO Pin 044 (P1-08/DB25-17): IOPort
hm2/hm2_7c80.0: IO Pin 045 (P1-09/DB25-05): StepGen #7, pin Direction (Output)
hm2/hm2_7c80.0: IO Pin 046 (P1-11/DB25-06): StepGen #8, pin Step (Output)
hm2/hm2_7c80.0: IO Pin 047 (P1-13/DB25-07): StepGen #8, pin Direction (Output)
hm2/hm2_7c80.0: IO Pin 048 (P1-15/DB25-08): IOPort
hm2/hm2_7c80.0: IO Pin 049 (P1-17/DB25-09): IOPort
hm2/hm2_7c80.0: IO Pin 050 (P1-19/DB25-10): IOPort
hm2/hm2_7c80.0: IO Pin 051 (P1-21/DB25-11): Encoder #1, pin A (Input)
hm2/hm2_7c80.0: IO Pin 052 (P1-23/DB25-12): Encoder #1, pin B (Input)
hm2/hm2_7c80.0: IO Pin 053 (P1-25/DB25-13): Encoder #1, pin Index (Input)
hm2/hm2_7c80.0: registered
thanks, so much guys for taking the time.
remember, im a rookie on this topic.
have some problem with my rpspi4 and linuxcnc with 7c80.
Linux pi 6.6.44-rt39 #1 SMP PREEMPT_RT Mon Aug 12 21:10:13 AEST 2024 aarch64 GNU/Linux. I spoke with a person from mesa, he told that spi is disable, i tried to enable on /boot/firmware/config.txt and change # uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on
This is the file I installed rpi-4-debian-bookworm-6.6.44-rt39-arm64-ext4-2024-08-12-2149.img.xz
halcmd setp hm2_7c80.0.led.CR02 TRUE
nothing happen in the board, no light come on
or even the output light come on.
used linuxcnc because I want to use vismach bc I want to configure a 5 axis machine but haven't find much information on it.sudo mesaflash --device 7c80 --addr /dev/spidev0.0 --spi --readhmid
open: No such file or directory
No 7C80 board found
halcmd loadrt hostmot2
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
halcmd loadrt hm2_rpspi
hm2/hm2_7c80.0: Low Level init 0.15
hm2/hm2_7c80.0: Smart Serial Firmware Version 43
hm2/hm2_7c80.0: 54 I/O Pins used:
hm2/hm2_7c80.0: IO Pin 000 (TB07-02/TB07-03): StepGen #0, pin Step (Output)
hm2/hm2_7c80.0: IO Pin 001 (TB07-04/TB07-05): StepGen #0, pin Direction (Output)
hm2/hm2_7c80.0: IO Pin 002 (TB08-02/TB08-03): StepGen #1, pin Step (Output)
hm2/hm2_7c80.0: IO Pin 003 (TB08-04/TB08-05): StepGen #1, pin Direction (Output)
hm2/hm2_7c80.0: IO Pin 004 (TB09-02/TB09-03): StepGen #2, pin Step (Output)
hm2/hm2_7c80.0: IO Pin 005 (TB09-04/TB09-05): StepGen #2, pin Direction (Output)
hm2/hm2_7c80.0: IO Pin 006 (TB10-02/TB10-03): StepGen #3, pin Step (Output)
hm2/hm2_7c80.0: IO Pin 007 (TB10-04/TB10-05): StepGen #3, pin Direction (Output)
hm2/hm2_7c80.0: IO Pin 008 (TB11-02/TB11-03): StepGen #4, pin Step (Output)
hm2/hm2_7c80.0: IO Pin 009 (TB11-04/TB11-05): StepGen #4, pin Direction (Output)
hm2/hm2_7c80.0: IO Pin 010 (TB12-02/TB12-03): StepGen #5, pin Step (Output)
hm2/hm2_7c80.0: IO Pin 011 (TB12-04/TB12-05): StepGen #5, pin Direction (Output)
hm2/hm2_7c80.0: IO Pin 012 (TB03-03/TB04-04): IOPort
hm2/hm2_7c80.0: IO Pin 013 (TB03-05/TB04-06): IOPort
hm2/hm2_7c80.0: IO Pin 014 (TB03-05/TB03-06): IOPort
hm2/hm2_7c80.0: IO Pin 015 (TB04-01/TB04-02): Encoder #0, pin A (Input)
hm2/hm2_7c80.0: IO Pin 016 (TB04-04/TB04-05): Encoder #0, pin B (Input)
hm2/hm2_7c80.0: IO Pin 017 (TB04-07/TB04-08): Encoder #0, pin Index (Input)
hm2/hm2_7c80.0: IO Pin 018 (TB05-02): PWMGen #0, pin Out0 (PWM or Up) (Output)
hm2/hm2_7c80.0: IO Pin 019 (TB05-02): PWMGen #0, pin Not-Enable (Output)
hm2/hm2_7c80.0: IO Pin 020 (TB05-05/TB05-06): IOPort
hm2/hm2_7c80.0: IO Pin 021 (TB05-07/TB05-08): IOPort
hm2/hm2_7c80.0: IO Pin 022 (Internal InMux0): InMux Input Mux #0, pin addr0 (Output)
hm2/hm2_7c80.0: IO Pin 023 (Internal InMux1): InMux Input Mux #0, pin addr1 (Output)
hm2/hm2_7c80.0: IO Pin 024 (Internal InMux2): InMux Input Mux #0, pin addr2 (Output)
hm2/hm2_7c80.0: IO Pin 025 (Internal InMux3): InMux Input Mux #0, pin addr3 (Output)
hm2/hm2_7c80.0: IO Pin 026 (Internal InMux4): InMux Input Mux #0, pin addr4 (Output)
hm2/hm2_7c80.0: IO Pin 027 (Internal InMuxData): InMux Input Mux #0, pin muxdata (Input)
hm2/hm2_7c80.0: IO Pin 028 (TB13-01/TB13-02): SSR #0, pin Out-00 (Output)
hm2/hm2_7c80.0: IO Pin 029 (TB13-03/TB13-04): SSR #0, pin Out-01 (Output)
hm2/hm2_7c80.0: IO Pin 030 (TB13-05/TB13-06): SSR #0, pin Out-02 (Output)
hm2/hm2_7c80.0: IO Pin 031 (TB13-07/TB13-08): SSR #0, pin Out-03 (Output)
hm2/hm2_7c80.0: IO Pin 032 (TB14-01/TB14-02): SSR #0, pin Out-04 (Output)
hm2/hm2_7c80.0: IO Pin 033 (TB14-03/TB14-04): SSR #0, pin Out-05 (Output)
hm2/hm2_7c80.0: IO Pin 034 (TB14-05/TB14-06): SSR #0, pin Out-06 (Output)
hm2/hm2_7c80.0: IO Pin 035 (TB14-07/TB14-08): SSR #0, pin Out-07 (Output)
hm2/hm2_7c80.0: IO Pin 036 (Internal SSR): SSR #0, pin AC Ref (internal) (Output)
hm2/hm2_7c80.0: IO Pin 037 (P1-01/DB25-01): PWMGen #1, pin Out0 (PWM or Up) (Output)
hm2/hm2_7c80.0: IO Pin 038 (P1-02/DB25-14): IOPort
hm2/hm2_7c80.0: IO Pin 039 (P1-03/DB25-02): StepGen #6, pin Step (Output)
hm2/hm2_7c80.0: IO Pin 040 (P1-04/DB25-15): IOPort
hm2/hm2_7c80.0: IO Pin 041 (P1-05/DB25-03): StepGen #6, pin Direction (Output)
hm2/hm2_7c80.0: IO Pin 042 (P1-06/DB25-16): IOPort
hm2/hm2_7c80.0: IO Pin 043 (P1-07/DB25-04): StepGen #7, pin Step (Output)
hm2/hm2_7c80.0: IO Pin 044 (P1-08/DB25-17): IOPort
hm2/hm2_7c80.0: IO Pin 045 (P1-09/DB25-05): StepGen #7, pin Direction (Output)
hm2/hm2_7c80.0: IO Pin 046 (P1-11/DB25-06): StepGen #8, pin Step (Output)
hm2/hm2_7c80.0: IO Pin 047 (P1-13/DB25-07): StepGen #8, pin Direction (Output)
hm2/hm2_7c80.0: IO Pin 048 (P1-15/DB25-08): IOPort
hm2/hm2_7c80.0: IO Pin 049 (P1-17/DB25-09): IOPort
hm2/hm2_7c80.0: IO Pin 050 (P1-19/DB25-10): IOPort
hm2/hm2_7c80.0: IO Pin 051 (P1-21/DB25-11): Encoder #1, pin A (Input)
hm2/hm2_7c80.0: IO Pin 052 (P1-23/DB25-12): Encoder #1, pin B (Input)
hm2/hm2_7c80.0: IO Pin 053 (P1-25/DB25-13): Encoder #1, pin Index (Input)
hm2/hm2_7c80.0: registered
thanks, so much guys for taking the time.
remember, im a rookie on this topic.
Last edit: 29 Aug 2024 21:10 by Mr_rookie.
Please Log in or Create an account to join the conversation.
29 Aug 2024 21:30 #308974
by PCW
Replied by PCW on topic 7c80 no communication between rpspi 4
Looks like the SPI device driver is not loaded. maybe someone with experience with
the LinuxCNC RPI image can help with enabling that driver.
The LinuxCNC driver does work however so you should not have any issues running LinuxCNC.
The kernel SPI driver is only needed by mesaflash so unless you need to change the standard
firmware. you should be able to proceed with setting up LinuxCNC.
the LinuxCNC RPI image can help with enabling that driver.
The LinuxCNC driver does work however so you should not have any issues running LinuxCNC.
The kernel SPI driver is only needed by mesaflash so unless you need to change the standard
firmware. you should be able to proceed with setting up LinuxCNC.
Please Log in or Create an account to join the conversation.
29 Aug 2024 21:41 #308977
by Mr_rookie
Replied by Mr_rookie on topic 7c80 no communication between rpspi 4
some error come on when i tried to configure board with pnpconfig after in tried to set the stepper motor movements.
Please Log in or Create an account to join the conversation.
29 Aug 2024 21:58 - 29 Aug 2024 22:04 #308980
by cornholio
Replied by cornholio on topic 7c80 no communication between rpspi 4
When running from halcm or halrun isn't it required to create a thread and add the read & write function to the thread, and then issue a start command to get anything to happen ?
And the config file is not in the same place as a normal RPi.
It is in /boot/broadcom/config.txt - this was the case for the 2023 version. And is still the case for the 2024 version. This really needs to be mentioned in the downloads section or even easier spi enable in the image.
And the config file is not in the same place as a normal RPi.
It is in /boot/broadcom/config.txt - this was the case for the 2023 version. And is still the case for the 2024 version. This really needs to be mentioned in the downloads section or even easier spi enable in the image.
Last edit: 29 Aug 2024 22:04 by cornholio.
Please Log in or Create an account to join the conversation.
29 Aug 2024 22:01 #308982
by PCW
Replied by PCW on topic 7c80 no communication between rpspi 4
I would probably use pncconf and create a simple step/dir configuration
for a 5i25+G540x2 and don't assign any I/O for limit switches etc
Then change the card name and driver name. This should get you a minimal
working hal/ini file set that can be edited to add the desired digital I/O
for home/limits/spindle etc
for a 5i25+G540x2 and don't assign any I/O for limit switches etc
Then change the card name and driver name. This should get you a minimal
working hal/ini file set that can be edited to add the desired digital I/O
for home/limits/spindle etc
Please Log in or Create an account to join the conversation.
29 Aug 2024 23:06 #308988
by Mr_rookie
Replied by Mr_rookie on topic 7c80 no communication between rpspi 4
do you have any idea how to enable the spi ?
Please Log in or Create an account to join the conversation.
29 Aug 2024 23:22 #308989
by PCW
Replied by PCW on topic 7c80 no communication between rpspi 4
Did you check cornholios suggestion?
Please Log in or Create an account to join the conversation.
29 Aug 2024 23:43 #308991
by Mr_rookie
Replied by Mr_rookie on topic 7c80 no communication between rpspi 4
nop, no idea
how can do that ?
how can do that ?
Please Log in or Create an account to join the conversation.
29 Aug 2024 23:49 #308992
by cornholio
Replied by cornholio on topic 7c80 no communication between rpspi 4
The file you have to edit is:
/boot/Broadcom/config.txt
Not /boot/firmware/config.txt
This file does not exist in Rodw’s image. You must have created the directory and file.
I downloaded Rodw’s most recent image to check. I was involved when Rod was initially making the images last year. I did a fair bit of testing.
/boot/Broadcom/config.txt
Not /boot/firmware/config.txt
This file does not exist in Rodw’s image. You must have created the directory and file.
I downloaded Rodw’s most recent image to check. I was involved when Rod was initially making the images last year. I did a fair bit of testing.
Please Log in or Create an account to join the conversation.
29 Aug 2024 23:52 #308993
by cornholio
Replied by cornholio on topic 7c80 no communication between rpspi 4
Sorry
/boot/broadcom/config.txt
The file is the same as the official RPi image but in a different location. This is due to the patched kernel used.
/boot/broadcom/config.txt
The file is the same as the official RPi image but in a different location. This is due to the patched kernel used.
Please Log in or Create an account to join the conversation.
Time to create page: 0.105 seconds