CODESYS Control RTE: C0297: Stack overflow detected

AlfredoQuintero

Lifetime Supporting Member
Join Date
Feb 2015
Location
Yokohama
Posts
1,551
Hello:
I am experiencing the following error:
[ERROR] C0297: Stack overflow detected in DecodeOID. Maximal Stack Size: 64512. Calculated Stack Size: 68024. Call Hierarchie:
I cannot find a clear explanation on where to increase the stack for the Control RTE soft-PLC.
If you know where to tweak, will be grateful if you let me know.
 
I tried building the same program in Codesys for Windowos, and it is possible to build and load without the stack overflow problem.

2023-08-30_InCodesysForWindows_NoStackOVerflow.png
 
Is this when compiling or running?

If running, then check the logic to see whether a routine might be calling itself, either directly or indirectly.

Stack overflow is often the result of unconstrained recursion.
 
I am no codesys expert, but just reading through "The book of codesys" there are a bunch of provided POU's to do implicit checks on your program, might try using one or even all of these.

Quite a few available in there, and perhaps it'll help you figure it out.

Application>Add Object>POU for implicit checks

maybe it works, maybe not, worth a shot
 

Similar Topics

Hello, once again, CODESYS experts. I have to setup a CODESYS RTE PLC for a customer, and I stumbled with a problem I can not solve:smas:, as per...
Replies
1
Views
401
How much does it cost? I have sent several email to the US listing but never get a reply and I want to know how much the CODESYS Control RTE...
Replies
4
Views
2,873
Hi, I have never used modbus communication in Codesys 2.3, any tips and tricks are much appreciated. The system is a Wago 750-881 that controls...
Replies
3
Views
1,855
Hello. I have a system in which I have only installed the CODESYS Control Win x64 package, without the development environment. I have one issue...
Replies
2
Views
2,734
Hello, I am using a Hitachi Micro EHV+ for a small project, and I wanted to have a Web visu, done with Codesys V3.5 SP13 Patch 2. I test the...
Replies
6
Views
294
Back
Top Bottom