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.