Hi, i seem to have an issue with canopen manager that causes an error when trying to simulate the PLC.
When i press download the compliation occurs as the attached txt file.
I recieve the error C0297 stack overflow that hinders me from downloading to the simulation PLC. If i remove the canopen manager i can download just fine to the simulation.
I have a licence for "CODESYS CANopen Manager SL" installed on the PC but this problem seems to persist.
I am running version 3.5 SP11.
Would be very grateful for som guidence where the problem for all of this could be located!
Same problem also for me.
V3.5 SP11 [...]
generate relocations ... [ERROR] C0297: Stack overflow detected in get__time (CANopenManager.BeforeReadInputs()->CANopenManager.IoDrvStartBusCycle()->CANopenManager.CheckLicense()->OLM_OnlineLicenseManager.GetLicenseValue()->OLM_OnlineLicenseManager.GetPureLicenseValue()->SysTargetGetId()->SysTargetGetType()->RegisterLicenseFunctions()->CMRegisterLicenseFunctions()->LicenseFunctions.FB_INIT()->OLM_OnlineLicenseManager.ReadLicenseFile()->CMAddComponent()->SysFileOpen()->OLM_OnlineLicenseManager.LogErrorMessage()->LogAdd2()->OLM_OnlineLicenseManager.GenerateException()->SysFileGetSizeByHandle()->SysFileRead()->OLM_OnlineLicenseManager.UdintValueOfLine()->mySTRING_TO_UDINT()->OLM_OnlineLicenseManager.ValueOfLine()->LEN()->FIND()->LEFT()->MID()->RIGHT()->LEN()->SysFileClose()->CONCAT()->myUDINT_TO_STRING()->OLM_OnlineLicenseManager.UdintValueOfLine()->mySTRING_TO_UDINT()->OLM_OnlineLicenseManager.ValueOfLine()->LEN()->FIND()->LEFT()->MID()->RIGHT()->LEN()->OLM_OnlineLicenseManager.GetCodemeterLicenseValue()->OLM_OnlineLicenseManager.StoreLicense()->OLM_OnlineLicenseManager.GetDemoLicense()->LogAdd2()) [INFORMATION] Size of generated code: 114816 bytes [...]
The problem appear only in simulation mode.
Someone solved this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, i seem to have an issue with canopen manager that causes an error when trying to simulate the PLC.
When i press download the compliation occurs as the attached txt file.
I recieve the error C0297 stack overflow that hinders me from downloading to the simulation PLC. If i remove the canopen manager i can download just fine to the simulation.
I have a licence for "CODESYS CANopen Manager SL" installed on the PC but this problem seems to persist.
I am running version 3.5 SP11.
Would be very grateful for som guidence where the problem for all of this could be located!
This same error has just started for me also, using V3.5 SP11.
I am experiencing the same issue - did either of you find a solution for this?
Not really. But i suspect this is only a problem with the simulation.
If you would like to run simulations i would probably just remove the canopen manager and test the program that way.
My setup is complicated to fully simulate so i will switch over to running from the actual PLC in mid August to fully test things.
Same problem also for me.
V3.5 SP11
[...]
generate relocations ...
[ERROR] C0297: Stack overflow detected in get__time (CANopenManager.BeforeReadInputs()->CANopenManager.IoDrvStartBusCycle()->CANopenManager.CheckLicense()->OLM_OnlineLicenseManager.GetLicenseValue()->OLM_OnlineLicenseManager.GetPureLicenseValue()->SysTargetGetId()->SysTargetGetType()->RegisterLicenseFunctions()->CMRegisterLicenseFunctions()->LicenseFunctions.FB_INIT()->OLM_OnlineLicenseManager.ReadLicenseFile()->CMAddComponent()->SysFileOpen()->OLM_OnlineLicenseManager.LogErrorMessage()->LogAdd2()->OLM_OnlineLicenseManager.GenerateException()->SysFileGetSizeByHandle()->SysFileRead()->OLM_OnlineLicenseManager.UdintValueOfLine()->mySTRING_TO_UDINT()->OLM_OnlineLicenseManager.ValueOfLine()->LEN()->FIND()->LEFT()->MID()->RIGHT()->LEN()->SysFileClose()->CONCAT()->myUDINT_TO_STRING()->OLM_OnlineLicenseManager.UdintValueOfLine()->mySTRING_TO_UDINT()->OLM_OnlineLicenseManager.ValueOfLine()->LEN()->FIND()->LEFT()->MID()->RIGHT()->LEN()->OLM_OnlineLicenseManager.GetCodemeterLicenseValue()->OLM_OnlineLicenseManager.StoreLicense()->OLM_OnlineLicenseManager.GetDemoLicense()->LogAdd2())
[INFORMATION] Size of generated code: 114816 bytes [...]
The problem appear only in simulation mode.
Someone solved this?
Hi,
I am having the same issue when trying to add Mqtt libraries to my project. This message error appear only when generating code or simulating.
[ERROR] C0297: Stack overflow detected in MQTT_CONTROL (PLC_PRG()->HowTo()->MqttClient()->MQTT_CONTROL()->STRING_TO_URL())
Has anyone experienced something similar? It would be great if someone can help.
Many thanks,
Manuel