this code works for rpi 4 model B but not working for rpi 5

More
18 Jul 2024 09:19 #305563 by yathish
This code is not working for RPI 5 it shows some debug error related to permissions, 
error is like:

Debug file information:
Note: Using POSIX realtime
The GPIO line GPIO16 can not be found
hal_gpio: rtapi_app_main: Operation not permitted (-1)
./xy.hal:8: waitpid failed /usr/bin/rtapi_app hal_gpio
./xy.hal:8: /usr/bin/rtapi_app exited without becoming ready
./xy.hal:8: insmod for hal_gpio failed, returned -1
1564
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime

Anybody has any idea to solve this problem kindly reply.
Attachments:

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

More
18 Jul 2024 10:36 #305566 by cornholio

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

More
22 Jul 2024 06:24 #305833 by yathish
yes i read thru this thread. Do u have any idea ?

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

More
22 Jul 2024 12:30 #305852 by tommylight
Seems to be permissions issue with gpio, might have better luck in the RPI forums, although no idea how often it is used there.

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

More
22 Jul 2024 19:59 #305871 by rodw
My guess is gpio16 does not exist. remove it

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

Time to create page: 0.070 seconds
Powered by Kunena Forum