I updated a BB-400 (based on Pi Compute Module 3+) to the latest RT PREEMPT OS
4.19.71-rt24-v7+ #1 SMP PREEMPT RT Fri Sep 27 17:22:14 EDT 2019 armv7l GNU/Linux
Codesys Version 18.104.22.168
When I try to download a program to Codesys, it abruptly stops. These are the last few lines of the debug log:
SysTaskCreate: create BlkDrvUdp(prio:95,interval:0us,stacksize:131072)
SysTaskFrame: BlkDrvUdp(tid:3925,OSprio:0) running
SysTaskCreate: create OPCUAServer(prio:128,interval:0us,stacksize:131072)
SysTaskFrame: OPCUAServer(tid:3926,OSprio:0) running
SysTaskCreate: create CommCycleHook(prio:223,interval:0us,stacksize:131072)
SysTaskFrame: CommCycleHook(tid:3927,OSprio:0) running
ooops... this runtime was built for RASPBERRYPI (-25, 0x00000BB8, 0xFFFFFFFB)
PlcStartSL: ERROR: Ptrace CONT FAILED (errno 3 No such process)
PlcStartSL: Parent kill
I deleted everything in /var/opt/codesys/PlcLogic and now it downloads. But now I have a problem with the license. This license software used by Codesys has countless issues. This time I forgot to backup the license file before re-imaging my device. When I try to activate the license from my repository, it gives an error.
I hope there are plans in the near future to move to a reliable licensing software.
Something is very unstable with this kernel and Codesys version. It was working well, so I shutdown the device and took it to the office. Now it is back to the same error in the fist post. I tried deleting the boot project files again, but this time it did not fix it. It keeps closing out on the "ooops... this runtime was built for RASPBERRYPI (-25, 0x00000BB8, 0xFFFFFFFB)" error.
I downloaded a very basic program to the device and it runs for about 10 seconds before dumping out of Codesys on the mentioned error.
Before the kernel update, it ran for several days on the exact same piece of hardware.
What could be causing the run-time to think it is not a Raspberry Pi?
If this helps, this is the beginning of the debug information:
PlcStartSL: fork parent: 3074
PlcStartSL: fork child: ppid: 3072 1749
********* CoDeSysControl DEMO VERSION - runs 2 hours*********
PlcStart: using /etc/CODESYSControl.cfg as config file
timer resolution: 1nsec
Linux version 4.19.71-rt24-v7+ (----------) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)) #1 SMP PREEMPT RT Fri Sep 27 17:22:14 EDT 2019
I also noticed it says "DEMO VERSION", but I just bought another license today and activated it. (second license for this same device)
Codesys was working fine on 4.14-RT, but it looks like I'm facing similar issue for 4.19-RT on a regular RPI 3B+. Are you reading from /tmp/codesysedge_debug.log? Nothing unusual shows up from its status except that Codesys exists 10-20 seconds after starting:
$ service codesyscontrol status
● codesyscontrol.service - LSB: Prepares and starts codesyscontrol
Loaded: loaded (/etc/init.d/codesyscontrol; generated; vendor preset: enabled)
Active: active (exited) since Sun 2020-06-21 01:44:57 PDT; 9h ago
Tasks: 0 (limit: 4915)
Jun 21 01:44:56 RevPi21689 systemd: Starting LSB: Prepares and starts codesyscontrol...
Jun 21 01:44:56 RevPi21689 codesyscontrol: License backup created
Jun 21 01:44:57 RevPi21689 codesyscontrol: codesyscontrol started
Jun 21 01:44:57 RevPi21689 systemd: Started LSB: Prepares and starts codesyscontrol.
have a look here
Log in to post a comment.