Uploaded image for project: 'CIFX Toolkit'
  1. CIFX Toolkit
  2. NXDRVTKIT-93

toolkit HW examples overwrite pfnHwIfRead/Write by call of memset(0) after retrieval from SerialDPM_Init

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None
    • Account:
      SDO Driver (SDODRIVER)

      Description

      Serial DPM examples calling SerialDPM_Init() to set 'read' and 'write' function pointers in the device instance structure, if CIFX_TOOLKIT_HWIF is defined.

      The following function cifXTkHWFunctions_InitializeDataStructures() resets this device instance by using a memset.
      This memset sets already initialized pointers back to 0x0, resulting in a programm access viloation.

      This can be prevented if the order of the two calls is exchanged.

        Attachments

          Expenses

            Activity

              Status Description

                People

                • Reporter:
                  LContreras Luis Contreras [X] (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: