Uploaded image for project: 'EtherNet/IP Firmware V3'
  1. EtherNet/IP Firmware V3
  2. PSEISV3-345

[CIP Sync] Time Sync object cannot be created due to low memory resources

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: V3.4.0.3, V3.4.1.0, V3.5.0.0
    • Component/s: None
    • Labels:
      None
    • Account:
      SPC EthernetIp Slave (SPCETHERNE)

      Description

      Starting the CIP Sync feature (including PTP stack and CIP Time Sync object) requires about 13kB of heap memory. Due to the internal memory allocation handling, this amount of memory cannot be allocated under certain conditions (allthough enough memory is available as reported by mallinfo() ).

      Reason:

      Malloc() manages an “arena”, that is increased if needed by the rcX system call of sbrk(). It can be increased until the heap memory is exhausted.

      The used threshold value is set hard coded inside the newlib and therefore is not adaptable. The threshold is currently set to 4096 byte. This means that up to 4095 bytes of the actually free heap memory are not usable by malloc().

       

        Attachments

          Expenses

            Activity

              Status Description

                People

                • Reporter:
                  KMichel Kai Michel
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: