Advanced Search

Search Results (Searched for: )

  • ccatlett1984
  • ccatlett1984
04 Jan 2025 02:27
Replied by ccatlett1984 on topic Pi5 MESA 7c80: mesaflash can't see the card.

Pi5 MESA 7c80: mesaflash can't see the card.

Category: Driver Boards

You need to enable spidev0.0 by turning SPI on in the boot/broadcom/config.txt file

(I have no idea what pins spidev10.0 connects to)

 

Thought that would have been already enabled in the downloaded image...
I enabled it in /boot/broadcom/config.txt
here is the output
pi@linuxcnc:/dev$ ls spi*
spidev0.0  spidev0.1  spidev10.0

Here is the mesaflash output.
pi@linuxcnc:~$ sudo mesaflash --device 7c80 --addr /dev/spidev1.0 --spi --readhmid
open: No such file or directory
No 7C80 board found
pi@linuxcnc:~$ sudo mesaflash --device 7c80 --addr /dev/spidev10.0 --spi --readhmid
Unexpected cookie at 0100..0110:
ffffffff ffffffff ffffffff
No 7C80 board found
pi@linuxcnc:~$ sudo mesaflash --device 7c80 --addr /dev/spidev0.0 --spi --readhmid
Configuration Name: HOSTMOT2

General configuration information:

  BoardName : MESA7C80
  FPGA Size: 9 KGates
  FPGA Pins: 144
  Number of IO Ports: 2
  Width of one I/O port: 27
  Clock Low frequency: 100.0000 MHz
  Clock High frequency: 200.0000 MHz
  IDROM Type: 3
  Instance Stride 0: 4
  Instance Stride 1: 64
  Register Stride 0: 256
  Register Stride 1: 256
  • Cong
  • Cong
04 Jan 2025 02:09

Have you tried linuxcnc support to run on rockchip series development boards?

Category: General LinuxCNC Questions

 For example, rk3566,rk3588, if you can generally use what display mode, the following is the rk3566 supported by the 3D graphics engine:
 Mali-G52 1-Core-2EE

 Support OpenGL ES 1.1, 2.0, and 3.2

 Support Vulkan 1.0 and 1.1

 Support OpenCL 2.0 Full Profile

 Support 1600Mpix/s fill rate when 800MHz clock frequency

 Support 38.4GLOPs when 800MHz clock frequency
  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
04 Jan 2025 02:03
Replied by Cant do this anymore bye all on topic Pi5 MESA 7c80: mesaflash can't see the card.

Pi5 MESA 7c80: mesaflash can't see the card.

Category: Driver Boards

You need to enable the SPI in config.txt and reboot, it is under the boot folder but the folder have slightly different names to a std Raspbian OS.
If the 7c80 is similar to the 7c81 the spi pins are hardwired to the first spi port on the first spi interface.

linuxcnc.org/docs/html/man/man9/hm2_rpspi.9.html

The hm2_spix is pretty much the same. As you can see from the above the SPI signals are hardwired.

If the SPI circuit of the 7c80 is based on the 7c81 design:
Basically without creating a custom cable (which I mentioned previously) the only SPI interface is using the following pins
MOSI=10(19), MISO=9(21), SCLK=11(23), CE0=8(24)

To tell the truth I'm not even sure spidev10.0 is for end user use. I think the only pins exposed on the 40 pin header are for spidev1.xx & spidev0.xx

The reason the card will be seen when using halcmd is that the hm2_spix driver takes full control of the hardware regarding the spi pins. To put it simply it replaces the kernel module that handles spi hardware.

Summarizing:
Mesaflash requires the devnodes for spi to be created by the kernel. Which physically limited to /dev/spidev0.0

hm2_rpspi & hm2_spix don't use the dev nodes as the setup for the GPIO is done by the Linuxcnc driver. Yet phsycially physically limited to the GPIOS associated with /dev/spidev0.0
Without specifying a spi interface it will default to the hardware (GPIO pins) associated with /dev/spidev0.0
An alternate interface can be specified but the physical connections between the RPi and the Mesa board need to be changed to suit. ie CS, CLK,MISO& MOSI will be the same at the mesa end but will need changing at the RPi end.
  • kb0thn
  • kb0thn
04 Jan 2025 01:57

Inhibit tool when z is above set point

Category: HAL

Hi Group,

I've got a large format wood router that I've put a diode laser on. The diode laser is just turned on and off with a digital output. I would like to have LinuxCNC inhibit the laser if Z is above a certain point. What is the best way to do something like this?

Thanks!

-Jim
  • blazini36
  • blazini36
04 Jan 2025 01:56
Replied by blazini36 on topic Arduino IO Expansion

Arduino IO Expansion

Category: Show Your Stuff

Yeah Tommy is pretty much correct in the fact that 1.5Mbaud does not equal 1.5Mbit because there are wasted bits.....start, stop, parity, address, etc
 
That will affect the overall byte rate, not the overall bit rate. If fact Tommy's definition made no mention of of protocols, which stop-start-parity etc would be part of.
When designing hardware for the transmission of serial data any control bits or bytes don't come into the equation.
 

So your argument is that Baud rate = Bit rate?

This started cuz you said "a Mesa card using a smart serial daughter card would be the go, operates at 2.5M bits per second over a Cat5 cable"

"and from Mesa manualsIn the operate mode, the baud
rate is set to 2.5M baud (default)."

You said
"In a purely digital system, one voltage equaling zero (0v) and another voltage equaling 1 (5v) baud rate with be the same as bit rate."

OK but a 1/2 duplex RS485 line at 115.2Kbaud is running the same baud rate of a full duplex RS485 line running at 115.2Kbaud right? You don't say full duplex is double the baud rate do you? Full duplex does not have to switch the data line from Rx to Tx or vice versa to switch directions so it can technically transfer up to double the amount of data depending on whether the 1/2 duplex link has to switch directions at all.

If it switches even once you can't say that both links transmitted the same amount of data in the same amount of time at the same baud rate unless you say "well overall, not accounting for direction".....OK well in that case the full duplex link can still potentially transmit literally double but it's completely unpredictable.

data rate, or "bit rate" is ALWAYS "theoretical" or average, it is never absolute. Baud Rate is not absolute either but it is relative. Bus frequency is absolute, even if it is dynamic. It's all semantics covered in nonsense, personally I would say "Mbit" and mean "Mbaud" and not expect to be corrected but I won't argue that they are the same thing.
  • PCW
  • PCW's Avatar
04 Jan 2025 01:51 - 04 Jan 2025 01:54

Pi5 MESA 7c80: mesaflash can't see the card.

Category: Driver Boards

You need to enable spidev0.0 by turning SPI on in the boot/broadcom/config.txt file

(I have no idea what pins spidev10.0 connects to)
 
  • cmorley
  • cmorley
04 Jan 2025 01:44
Replied by cmorley on topic qtdragon additonal buttons

qtdragon additonal buttons

Category: Qtvcp

The screen shown is a modded qtdragon_hd so requires a larger monitor.
I can't find the original topic on the forum here, but I do have a copy of the .ui file
You would put this file in YOUR_CONFIG_FOLDER/qtvcp/screens/qtdragon_hd/qtdragon_hd.ui
  • ccatlett1984
  • ccatlett1984
04 Jan 2025 01:36 - 04 Jan 2025 01:51
Replied by ccatlett1984 on topic Pi5 MESA 7c80: mesaflash can't see the card.

Pi5 MESA 7c80: mesaflash can't see the card.

Category: Driver Boards

If you can reliably access the card on the RPI4, you would

sudo mesaflash --device 7c80 --spi --addr /dev/spidev0.0 --write 7c80d.bit
sudo mesaflash --device 7c80 --spi --addr /dev/spidev0.0 --write 7c80fall.bit --fallback

(7c80d.bit and 7c80fall.bit are in the 7c80.zip file in /configs/hostmot2/)
the zip file is available from the store in the card specification tab

 
From Pi4, dump of mesaflash BEFORE flashing: pastebin.com/kf8iUXQY
dump of mesaflash AFTER flashing: pastebin.com/5xm8FHpq

I forced a --reload in between each flash cmd, to validate the card took the firmware before moving on.

If this looks correct, I will proceed to swapping the pi5 back into the machine.

Update: Post flashing, with the Pi5 - halcmd sees the card.
pi@linuxcnc:/$ sudo mesaflash --device 7c80 --addr /dev/spidev0.0 --spi --readhmid [sudo] password for pi: open: No such file or directory No 7C80 board found
in /dev/ only a single spi entry exists "spidev10.0"
running mesaflash (using the above spi entry) results in the following
pi@linuxcnc:/$ sudo mesaflash --device 7c80 --addr /dev/spidev10.0 --spi --readhmid
Unexpected cookie at 0100..0110:
ffffffff ffffffff ffffffff
No 7C80 board found
pi@linuxcnc:/$

  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
04 Jan 2025 01:28
Replied by Cant do this anymore bye all on topic Arduino IO Expansion

Arduino IO Expansion

Category: Show Your Stuff

Yep have the hardware.
Nope doesn't work the way you propose.

Tried with a 500mm cable between my RPi5 and a 7c81 board, SPI fails even below the rates for a USB to arduino serial connection. In actual fact even having a grounded conductor between each SPI signal and trying to send signals from one pcb to another is not reliable over a distance of about 75mm.

From experience high speed serial communications, RS-422, SATA or whatever you want to try requires differential signalling, which causes timing issues with SPI. I researched this about 12 months ago.
  • ccatlett1984
  • ccatlett1984
04 Jan 2025 01:12
Replied by ccatlett1984 on topic Pi5 MESA 7c80: mesaflash can't see the card.

Pi5 MESA 7c80: mesaflash can't see the card.

Category: Driver Boards

If you can reliably access the card on the RPI4, you would

sudo mesaflash --device 7c80 --spi --addr /dev/spidev0.0 --write 7c80d.bit
sudo mesaflash --device 7c80 --spi --addr /dev/spidev0.0 --write 7c80fall.bit --fallback

(7c80d.bit and 7c80fall.bit are in the 7c80.zip file in /configs/hostmot2/)
the zip file is available from the store in the card specification tab

 

From Pi4, dump of mesaflash BEFORE flashing: pastebin.com/kf8iUXQY
dump of mesaflash AFTER flashing: pastebin.com/5xm8FHpq

I forced a --reload in between each flash cmd, to validate the card took the firmware before moving on.

If this looks correct, I will proceed to swapping the pi5 back into the machine.
  • Ehsan_R
  • Ehsan_R
04 Jan 2025 00:35
Replied by Ehsan_R on topic Arduino IO Expansion

Arduino IO Expansion

Category: Show Your Stuff

I still believe that spi can be used instead of serial communication and have a real time component.
If possible, have someone with the necessary hardware try this and report back
Many thanks
  • PCW
  • PCW's Avatar
04 Jan 2025 00:30 - 04 Jan 2025 00:31

Pi5 MESA 7c80: mesaflash can't see the card.

Category: Driver Boards

If you can reliably access the card on the RPI4, you would

sudo mesaflash --device 7c80 --spi --addr /dev/spidev0.0 --write 7c80d.bit
sudo mesaflash --device 7c80 --spi --addr /dev/spidev0.0 --write 7c80fall.bit --fallback

(7c80d.bit and 7c80fall.bit are in the 7c80.zip file in /configs/hostmot2/)
the zip file is available from the store in the card specification tab
 
  • ccatlett1984
  • ccatlett1984
04 Jan 2025 00:24
Replied by ccatlett1984 on topic Pi5 MESA 7c80: mesaflash can't see the card.

Pi5 MESA 7c80: mesaflash can't see the card.

Category: Driver Boards

You should be able to with the latest mesaflash

alright, putting the pi4 back in, let me know what needs done.
  • PCW
  • PCW's Avatar
04 Jan 2025 00:20

Pi5 MESA 7c80: mesaflash can't see the card.

Category: Driver Boards

You should be able to with the latest mesaflash
  • ccatlett1984
  • ccatlett1984
04 Jan 2025 00:19 - 04 Jan 2025 00:21
Replied by ccatlett1984 on topic Pi5 MESA 7c80: mesaflash can't see the card.

Pi5 MESA 7c80: mesaflash can't see the card.

Category: Driver Boards

I apologize, this is my fault, some production 7C80 cards ended up with
the wrong firmware. We can issue you a RMA for reflashing the card with
correct firmware. Sorry for the inconvenience.

 
So, since i have a pi4 that can see the card, is it possible for me to flash the correct firmware?

I'd much rather not kill a week plus in cross shipping.

I'd like to try it here if it doesn't require super-specialized equipment, I've made JTAG cables before.
Displaying 20746 - 20760 out of 21736 results.
Time to create page: 0.560 seconds
Powered by Kunena Forum