[FATAL ERROR] Unresolved reference: 'F_CPUCOUNTER'

alexgbb
2020-09-16
2020-09-17
  • alexgbb

    alexgbb - 2020-09-16

    I have a actual CodeSys project with version V3.5 SP16 Patch 1 32 Bit and as a device "CODESYS Control for Raspberry Pi SL" version 3.5.16.10. After I added a Library and login I get the error messages:
    [FATAL ERROR] Unresolved reference: 'F_CPUCOUNTER'
    and it is not possible to login.
    In the Log of the device I get two error messages:
    from the component CM "Failed to resolve F_CPUCOUNTER"
    from the CmpApp "Could not link external function F_CPUCOUNTER"

    I tested several things to find a solution but I haven't any idea who to solve it.
    I tested it also in CodeSys simulation and in this mode it is working fine but I didn't know the difference there.

    Any ideas?

     
  • eschwellinger

    eschwellinger - 2020-09-16

    Which library did you add?

     

    Last edit: eschwellinger 2020-09-16
  • alexgbb

    alexgbb - 2020-09-16

    I add the Beckhoff TC2_IoFunctions.Lib which include other Beckhoff Libs see attachment.

     
  • eschwellinger

    eschwellinger - 2020-09-16

    This does mit work for Raspberry PI...this function is external implemented in the Twincat runtime.

     

    Last edit: eschwellinger 2020-09-16
  • alexgbb

    alexgbb - 2020-09-16

    Is it not possible to simulate the function or set it to a fix value I think I didn't need it? Only that it is possible to login.

     

    Last edit: alexgbb 2020-09-16
  • eschwellinger

    eschwellinger - 2020-09-17

    This you need to do it in the Beckhoff library...

     

    Last edit: eschwellinger 2020-09-17
  • alexgbb

    alexgbb - 2020-09-17

    Ok, thanks for your help. I will contact Beckhoff and hope that they will find a solution.

     

Log in to post a comment.