#pragma pack(1)
typedef struct TEST_STRUCTURE {
   /* Byte 0 */
     UINT8 uiSEQ;
   /* Byte 1 */
     BIT1 biCharDir :1;
     UINT32 uiReserved1 :7;
   /* Byte 2 */
     UINT8 uiPulseCount_Ch1;
   /* Byte 3 */
     UINT8 uiPulseCount_Ch2;
   /* Byte 4~7 */
     UINT32 uiPulseCount_Access;
   /* Byte 8 */
     UINT32 uiSwVer :6;
     UINT32 uiStatus :2;
   /* Byte 9~11 */
     UINT16 uiSizeIndex;
     UINT8 uiReserved2;
   /* Byte 12~15 */
     UINT32 uiC;
};

In the case of code including the #pragma pack directive as above, the size of the structure in Controller Tester may be displayed differently from the original program.
The above directive is a structure memory alignment option, and pack support and behavior can differ depending on the compiler.
Therefore, in the case of using the conversion toolchain in Controller Tester, you can solve the above problem by selecting the visual studio compiler or gcc compiler that matches the compiler used to build the original program and the pack behavior.

Need more help with this?
Don’t hesitate to contact us here.

Thanks for your feedback.