Advanced Search

Search Results (Searched for: )

  • HansU
  • HansU's Avatar
16 Dec 2024 23:46
Replied by HansU on topic Building debian package without GTK2

Building debian package without GTK2

Category: Installing LinuxCNC

Do you mean adding the "--disable-gtk2" option to the rules.in script?
  • andypugh
  • andypugh's Avatar
16 Dec 2024 23:08
Replied by andypugh on topic Stepper motor Speed

Stepper motor Speed

Category: Basic Configuration

I haven't been able to find what sets the step length and step space for Remora.
At a scale of 1280 steps/mm and a speed of 1800 mm/min you need a step rate of 38kHz. Most stepper drivers are fine with 100kHz (5000ns step and space) and many can go much faster.

I do see a PRU_base_freq setting that defaults to 40kHz. If that is the limit you are hitting then you should be able to manage 1875 mm/min.
If you can do 1870 but not 1880 then that is probably it.
  • digiex_chris
  • digiex_chris
16 Dec 2024 23:01

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

Many thanks Zayoo !

i have add the code to the dev branch for testing.

if you want to use it, you can add
"rpi5": true,

to your json config

like this:


[code]{
"name": "IceShield",
"description": "RIO-IceShield on Raspberry PI5",
"boardcfg": "IceShield",
"protocol": "SPI",
"rpi5": true,
....
[/code]


I have tested it on dev. It works good with 2 changes:
I needed to set my spi speed at 1mhz due to my clock speed (I think), instead of 1.5mhz. I think we may need a way to configure this, as well as which spi dev to use. If we can configure which spi dev to use, it would be easier to use this on other systems as well. But for the main branch, I think we just need to support setting the spi speed.

Also, in toolchain.py, {cmd_cp} and {cmd_rm} were not evaluating correctly:
{cmd_cp} hash_new.txt hash_compiled.txt
/bin/sh: 1: {cmd_cp}: not found
I was able to make it work by changing the make by hand to cp -v. Probably not related to the rpi5 changes.

spiflash.sh doesn't work for an iceshield board, but that's to be expected I think. I'll look into that a little later. It's about not being able to set the board into reset mode via gpio25 I think, so flashrom can't read the rom size. I think there's an rpi4/5 compatible python gpio library out there, I'll see about writing a simple python helper for that instead of hitting the dev tree directly.
io.bin
bitfile: ./rio.bin ...
  reload drivers / set FPGA into reset mode
./spiflash.sh: line 52: echo: write error: Invalid argument
./spiflash.sh: line 54: /sys/class/gpio/gpio25/direction: No such file or directory
./spiflash.sh: line 61: test: : integer expression expected
  fill bitfile with zeros to reach flashsize:
   ERROR: dd can not read/write: dd if=/dev/zero of=/tmp/_flash.bin  bs= count=1


# ls /sys/class/gpio/
export  gpiochip399  gpiochip453  gpiochip459  gpiochip476  gpiochip480  unexport
  • COFHAL
  • COFHAL
16 Dec 2024 22:53
Replied by COFHAL on topic AX58100

AX58100

Category: EtherCAT

Are these values ​​in the xml file okay?
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="-1"> <!-- was "5" -->
<dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="1000000"/> <!-- was "0" -->
  • resmond
  • resmond
16 Dec 2024 22:38
Replied by resmond on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

A few message ago I mentioned a size related error as I tried to install the ISO from Rod's Google drive.

It was suggested that I use Balencia to burn it but that actually didn't work but with searched and finally found a tool that would install it. Then I moved past that I finally wound up with the combination that I wanted to my Pi 5 install. This included all kinds of tools (including those from Raspberry) and even edited the Xfce applications menus for super convenience.

But a word of caution about 'figuring out' your way around an error instead of understanding and fixing it right - once I was done installing and configuring and wanted to make a backup of my uSD card before I moved everything to my NVME I discovered that restoring the backup to a new uSD card failed with a 'too large' error no matter what I did.

I finally used a partition tool to shrink the ROOT partition and was able to both make/restore backups and move everything to my NVME, but it would have been a lot less anxiety had I just waited until ROB posted a version without that quirk.
  • fully_defined
  • fully_defined's Avatar
16 Dec 2024 22:25
Replied by fully_defined on topic Rotary Selector Switches & Resistors

Rotary Selector Switches & Resistors

Category: General LinuxCNC Questions

As far as wcomp is concerned, I thought the link would work.
 

The link worked. I was just commenting on how hard it is to find things.

I still have more replies coming. I appreciate all the effort you've taken to engage with me.
  • Zayoo
  • Zayoo
16 Dec 2024 22:13 - 16 Dec 2024 22:32

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

Thanks Chris, I will try with oss-cad-suite later, i have other issues that bothering me now :).

I can't enable that onerror modifier.
It currently looks like this:
{
"type": "bitout",
"pins": {
"bit": {
"modifier": [
{
"type": "onerror"
},
{
"type": "invert"
}
],
"pin": "PIN:69"
}
},
"name": "estop"
},
And this give me pin 68 on as soon as the power arrives to TN9. I can off/on this pin later through halshow rio.estop.bit. Togle ESTOP or ENABLE or exit LinuxCNC don't change state of this bit!

I noticed that if we close LinuxCNC while the spindle, flood or any other output is enabled, they stay on even LinuxCNC is off. I would like to implement some safety to machine. Easiest way is just to put relay which is on pin 69 in series with machine estop. When I exit linuxcnc or togle estop on LinuxCNC machine will off. How to implement that?
  • spumco
  • spumco
16 Dec 2024 21:56
Replied by spumco on topic Rotary Selector Switches & Resistors

Rotary Selector Switches & Resistors

Category: General LinuxCNC Questions

Yes, OFF/X/Y/Z/ is 'allowed'.  That's how mine are set up - I use the OFF selection to make sure I don't accidentally diddle the handwheel and mess something up.

As far as wcomp is concerned, I thought the link would work.

If not, the main LCNC page has a link to 'documents'.  That's the most recent user manual, and at the bottom of the page are links to HAL components.  Look under "Realtime components" and you should see wcomp.

Searching the forum for 'wcomp' should also work, though I'd suggest limiting it to 'search titles only' for a first pass.
  • ihavenofish
  • ihavenofish
16 Dec 2024 21:40
Replied by ihavenofish on topic PathPilot V2 source code

PathPilot V2 source code

Category: PathPilot

The tp source is not available yet as far as I've been told.
I have also been told its pretty far deviated, so it will not be a simplistic task to add it to the main.

This is just 4th hand information though, and I know nothing about coding so take that for what it's worth :)
  • tommylight
  • tommylight's Avatar
16 Dec 2024 21:20
Replied by tommylight on topic TB 6600 getting hot

TB 6600 getting hot

Category: Driver Boards

What current are they set to?
I have mine at 2A in a shop that gets to 55 degree C in the summer (around 0 right now) and had no issues with them, but i would venture a guess that the one faulting has the chip not laying flat on the cooler, so open it and check if the board/chip are flat and the thermal pad is in place.
Mind you, as a general prevention i did open all of them and also added thermal paste between the chip and pad and heatsink and pad.
All on closed enclosures with no fans.
  • ric812
  • ric812
16 Dec 2024 20:30 - 16 Dec 2024 20:31
Replied by ric812 on topic Homing speed slow

Homing speed slow

Category: General LinuxCNC Questions

That makes sense. I thought that would be the problem I just wasn't sure. Thank you very much 
  • Creative25
  • Creative25
16 Dec 2024 20:25
Replied by Creative25 on topic TB 6600 getting hot

TB 6600 getting hot

Category: Driver Boards

Today was a hot day ambient temperature was about 40 degrees Celsius

And the controlbox was switched on all day.
So when I cut a long cut suddenly one of the drivers got hot and shut down. So the tandem axis pulled skew and messed up the whole thing I was cutting.

My control box has no forced cooling would forced cooling help prevent this problem
Or could it be that the driver is damaged?
  • digiex_chris
  • digiex_chris
16 Dec 2024 20:21 - 16 Dec 2024 20:23

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

I'm trying to get the gowin toolchain up and running on rpi5. It gives me an error when execute making all.
cnc@raspberrypi:~/riocore/Output/TangNano9K_spi_rpi5/Gateware$ make clean
rm -rf rio.fs rio.json rio_pnr.json rio.tcl abc.history impl
cnc@raspberrypi:~/riocore/Output/TangNano9K_spi_rpi5/Gateware$ make all
gw_sh rio.tcl
/opt/gowin/IDE/bin/gw_sh: 2: Syntax error: Unterminated quoted string
make: *** [Makefile:34: impl/pnr/project.fs] Error 2
cnc@raspberrypi:~/riocore/Output/TangNano9K_spi_rpi5/Gateware$ 

I see you've already mentioned this error. I downloaded and cloned the dev version and it still doesn't work. Any tips...

I see there is another option 'generic_spi'. I will test that on rpi5 too just to get that toolchain working. I don't want to take the TN9 out of the device and program on windows anymore.


 

I found the gowin toolchain a major problem to get running on a few systems like a current LTS release of Ubuntu, so I built a docker container for the oss-cad-suite. Meister added one for the gowin toolchain, and one for oss-cad-suite on the pi. I think the pi one should work fine on the pi5 too.

I was able to flash directly using the oss-cad-suite one with a T9 on a pi4, but it's been a while. At the very least, the Dockerfiles have the details on getting the toolchain working.

Give this a try, it's the oss-cad-suite instead of gowin but it supports the T9 IIRC.
github.com/multigcs/riocore/blob/main/do...ile.debian12-run-rpi
github.com/multigcs/riocore/blob/main/DOCKER.md
  • digiex_chris
  • digiex_chris
16 Dec 2024 20:11 - 16 Dec 2024 20:24

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

I get the command line console and it quits out with ctrl+d as you say, but I'm still getting the same issue, I had changed the filename to something other than config.json to suit the machine, so I changed it back to config.json but no dice.
 

It might be easier to use the docker container, see the documentation in the git repo. github.com/multigcs/riocore/blob/main/DOCKER.md

Otherwise, gw_sh must be callable in the same terminal session you start the riocore tooling in.

It may be simpler to add the gowin bin path to your system path.
Start a new terminal, and 
echo $PATH

if you don't see your gowin bin dir listed somewhere in there, how you're setting the path is not working.
Displaying 21556 - 21570 out of 22082 results.
Time to create page: 0.484 seconds
Powered by Kunena Forum