Advanced Search

Search Results (Searched for: raspberry)

  • AndyCNC
  • AndyCNC
25 May 2025 15:49

Not able to get outputs on GPIO of Raspberry5

Category: Installing LinuxCNC

Hi,
I'm a bit desperate. I want to replace my very old pc based linuxcnc with the actual version running on a raspberry pi 5.
I've been trying to get signals to the pin header for a day now.
First of all: Is there a tutorial for raspberry configuration? I found nothing except the general docu and then went from one error message to another.
What I did is:
1. Started Stepconf wizard
2. Replaced parallel port Pins with hal_gpioxxx, see attached hal file

File Attachment:

File Name: AndyCNC.hal
File Size:3 KB

When I start this Setup following error occurs:  

File Attachment:

File Name: linuxcnc_report.txt
File Size:6 KB


This was my try to set the PINs:
halcmd: loadrt hal_gpio inputs=PIN3,PIN5,PIN7 outputs=PIN5,PIN6,PIN9,PIN10,PIN11,PIN17,PIN22,PIN27
Note: Using POSIX realtime
The GPIO line PIN3 can not be found
hal_gpio: rtapi_app_main: Operation not permitted (-1)
<stdin>:12: waitpid failed /usr/bin/rtapi_app hal_gpio
<stdin>:12: /usr/bin/rtapi_app exited without becoming ready
<stdin>:12: insmod for hal_gpio failed, returned -1
halcmd: Note: Using POSIX realtime

Would be nice if onyone could show my where I'm wrong.

Andy

 
  • mikereid0817
  • mikereid0817
21 May 2025 21:06

unable to get gpio to work on Raspberry Pi 5 using latest image

Category: Advanced Configuration

Thanks, Andy, you steered me in the right direction.

GPIO13 would not work at all, continuing to research that.

GPIO25, once pullup=GPIO25 was added, works.

I only have 1 limit switch setup, so I'm fully functional with the official image, Byte2Bot board, and my old Probotix motor driver setup.  Attached are the .hal and .ini files that worked, and my config.txt

 

File Attachment:

File Name: cncrouter.hal
File Size:3 KB

File Attachment:

File Name: cncrouter.ini
File Size:3 KB

File Attachment:

File Name: config.txt
File Size:3 KB
Displaying 346 - 347 out of 347 results.
Time to create page: 0.777 seconds
Powered by Kunena Forum