7c80 install on rpi 4

More
3 years 6 months ago - 3 years 6 months ago #269565 by PCW
Replied by PCW on topic 7c80 install on rpi 4
TRUE hm2_7c80.0.gpio.020.in

means disabled

This is because the outputs that drive the OPTOs are active low.
This is why you invert the outputs so setting GPIO 20 output pin
high gives an low output state.

 
Last edit: 3 years 6 months ago by PCW.

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

More
3 years 6 months ago #269566 by chernogorsky
Replied by chernogorsky on topic 7c80 install on rpi 4
Return back inverted mode

36 bit OUT FALSE hm2_7c80.0.gpio.020.in
36 bit OUT TRUE hm2_7c80.0.gpio.020.in_not
36 bit IN TRUE hm2_7c80.0.gpio.020.out <== spindle-cw

Same - no switching between EN+/EN-

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

More
3 years 6 months ago #269567 by PCW
Replied by PCW on topic 7c80 install on rpi 4
If you cannot control GPIO bit 20, that is GPIO input 20 does not change with GPIO 20 output state, that suggests that possibly the watchdog has bit or you are not looking at the real time
representations of these pins.

Note: you should use the watch tab of halshow while running LinuxCNC to check these

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

More
3 years 6 months ago #269569 by chernogorsky
Replied by chernogorsky on topic 7c80 install on rpi 4
Will check that also (i was not aware of whatchdog importance)
But I found the issue
it was: TB5 connector itself, some pins has flapping contacts with the wire (and probably the real output), so I did not see the real output
once I replace it with a another one - all goes as expected

Thank you for help, without it I probably reassmeble and recreate whole wiring befor I found it )

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

More
2 years 7 months ago - 2 years 7 months ago #295884 by shepherps
Replied by shepherps on topic 7c80 install on rpi 4
Hey All,

I've got a 7c80 on rpi4 using image www.linuxcnc.org/iso/rpi-4-debian-bookwo...23-11-17-1731.img.xz

sudo mesaflash --device 7c80 --addr /dev/spidev0.0 --spi --readhmid
open: No such file or directory
No 7C80 board found

other users have found running raspi-config works to enable SPI,  being Debian 12 that's not an option.

using short ribbon cable, yellow led is on.

Any thoughts?

EDIT

For those looking for a solution, uncomment "dtparam=spi=on" in the config.txt file in in the boot/broadcom folder. Should have thought of this before! 


Thanks
Last edit: 2 years 7 months ago by shepherps. Reason: Found solution

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

Moderators: PCW, jmelson
Time to create page: 0.346 seconds
Powered by Kunena Forum