retain variables emPC-A/iMX6 SL

AlexD
2017-10-11
2017-10-11
  • AlexD - 2017-10-11

    retain variables are set to zero after reboot

    /data/etc/CODESYSControl_User.cfg
    [CmpApp]
    Bootproject.RetainMismatch.Init=1
    RetainType.Applications=InSRAM

    /data/etc/CODESYSControl.cfg
    ; Note!!!
    ; Don't edit this file, as changes on this file will be
    ; lost after reboot, if the system is running in read-only mode.
    ; Please use /data/etc/CODESYSControl_User.cfg instead.
    ;

    [ComponentManager]
    Component.1=SysGraphic
    Component.2=SysWindow
    Component.3=SysNativeControl

    [SysFile]
    FilePath.1=/etc/, 3S.dat
    PlcLogicPrefix=1

    [CmpSocketCanDrv]
    ScriptPath=/opt/codesys/scripts/
    ScriptName=rts_set_baud.sh

    [CmpSettings]
    FileReference.0=SysFileMap.cfg, SysFileMap
    FileReference.1=/data/etc/CODESYSControl_User.cfg

    [_]
    Linux.DisableFpuUnderflowException=1
    Linux.DisableFpuOverflowException=1
    Linux.DisableFpuInvalidOperationException=1

    [CmpRetain]
    Retain.SRAM.Size=0x20000
    Retain.SRAM.Address=0x08000000

    [SysProcess]
    Command.0=shutdown

    [CmpWebServer]
    ConnectionType=0

    [CmpOpenSSL]
    WebServer.Cert=server.cer
    WebServer.PrivateKey=server.key
    WebServer.CipherList=HIGH

    [CmpLog]
    Logger.0.Name=/tmp/codesyscontrol.log
    Logger.0.Filter=0x0000000F
    Logger.0.Enable=1
    Logger.0.MaxEntries=1000
    Logger.0.MaxFileSize=1000000
    Logger.0.MaxFiles=1
    Logger.0.Backend.0.ClassId=0x00000104 ;writes logger messages in a file
    Logger.0.Type=0x314 ;Set the timestamp to RTC

    [SysMem]
    Linux.Memlock=0

    [CmpCodeMeter]
    InitLicenseFile.0=3SLicense.wbb

    [SysEthernet]
    Linux.ProtocolFilter=3

    [CmpSchedule]
    SchedulerInterval=4000
    ProcessorLoad.Enable=1
    ProcessorLoad.Maximum=95
    ProcessorLoad.Interval=5000

    [SysCom]
    Linux.Devicefile=/dev/ttymxc

    [CmpApp]
    Application.1=Application

     
  • AlexD - 2017-10-11

    emPC-A/iMX6Q/2 SY-EPC-64002
    codesys control 3.5.11.20
    please help i cant understand what i did wrong.
    i had another project with first version of emPC-imx6 control on SY-EPC-64001 where everything works fine.
    when i tried to install i received an error "/data/CODESYSControl.cfg missing..", after installed again through codesys no error,
    i saw that config files are different in another janz i have CODESYSControl_User_Default.cfg which is not referenced in CODESYSControl.cfg

     
  • AlexD - 2017-10-11

    Problem solved! it seems was some user rights issues with the new janz image, no write rights with user dev on home folder and maybe others... i'm not linux expert .

    edited /data/etc/CODESYSControl_User.cfg as root, /data/etc/ container for root?????
    [CmpApp]
    Bootproject.RetainMismatch.Init=1
    RetainType.Applications=InSRAM
    Application.1=Application

    removed /data/etc/CODESYSControl_User.cfg ???? /data/etc/ container for dev????

     

Log in to post a comment.