plctwincat

Is there a way to retrieve a compileinfo file from when the core dump was created


I have a PLC that had crashed over night. The system created core dump file, but I never needed to debug this before, so for some odd reason (we had other issues and my head was not really in the right state of mind) I clicked "activate configuration" without looking about the issue prior.

This probably caused a new compileinfo file to be generated. When I attempt to load the core file it now says that the compile info has changed and the core dump file can't be used. I looked in the development environment's project folder _compileinfo and the folder has only the most recent file.

Unfortunately the PLC code is located on the machine's IPC for ease of use/upgrades etc... so I do not have the last compile info in my git history either. Basically my question is, can I somehow debug the core dump file without the correct compileinfo file?

Any help would be greatly appreciated.

Edit: I have now also enabled the "core dump" in the project setting as it will also create the related compileinfo file.


Solution

  • No. If the compileinfo differs, then most probably also the binaries are different. The memory addresses in the core-dump will point to invalid locations. That's also why the TC-IDE is not loading it, because it would not make any sense.

    I recommend to use something like git for your project. If you did, you probably would be able to restore the "old" binaries.