Harsha_Nagaraja
Hi,

I recently switched from Raspberry Pi to PiXtend 2L encountered a couple of issues:
  1. The WiringPi library is not updated in compile_program.sh , causing a compilation error.
  2. When selecting PiXtend hardware in OpenPLC, I am unable to start the program (Start PLC). The log section briefly displays "Loading logs" for about a second and then disappears, but the PLC program does not start (Status remains stopped).
  3. There are no visible error messages, making it difficult to debug the issue.
Everything is working fine when using the raspberry pi hardware layer.
 
Has anyone faced this issue?
  • What could be preventing the PLC from starting with porgram when PiXtend as hardwara layer is selected?
  • Any suggestions on troubleshooting this issue?
Any help or guidance would be greatly appreciated!
Thanks in advance
Reply 0 0
thiagoralves
I haven't dealt with the PiXtend in a while, there is a chance the driver needs to be updated. Since I don't have the hardware anymore, it is hard to debug. What you can try to do is run the openplc binary from gdb and see if you spot any error messages. The openplc binary sits at /webserver/core/openplc. To run it with gdb just type on terminal
gdb openplc
Once gdb opens, type "run" (without quotes) and it will debug the binary. Make sure you've enabled the PiXtend hardware layer before doing all that, so that you debug the binary that contains the broken driver.
Reply 0 0
Harsha_Nagaraja
Thank you for your response.

I came across an unexpected fix for this issue. I noticed that the WiringPi library was not detecting the board correctly when running the command gpio -v in the terminal. Instead, it was identifying a board that the library did not recognize. I suspect there might be an issue with the recent release of the library. To resolve this, I cloned the master repository and installed it using the build command. Surprisingly, the board was then detected correctly, and the "Start PLC" function in the web server is now working fine.

I can’t provide a detailed technical explanation of why this fix worked, but I’m glad it did! If anyone has insights into how the proper installation of WiringPi resolved the issue, I’d appreciate further clarification.
Reply 0 0
fg71
The OpenPLC_v3 use version 3.4 of WiringPi that version do not have support for RPi5 or CM5.
It looks like they have update it to 3.14 and that version support Pi500 and CM5
 
The version you download was:
 
And this is the latest version
 
The way I do it is to download the latest WiringPi and install with apt and that has working for RPi5
 
The only thing I have not got to work on Raspberry Pi is EtherCat, and from what I read from other user who has try
Reply 0 0
Reply