Hy,
during development of my sensor controller application I came across a pecularity:
I use the following output of the sensor controller:
which creates the following struct in scif.h
typedef struct { uint16_t index; ///< current index of output array uint16_t result[256]; ///< uint16_t state; ///< Overall state } SCIF_MYSENSORCONTROLLER_I2C_OUTPUT_T;
but
should it not be a PACKED struct? I believe, that the 32bit ARM compiler resorts state and result, so I access result at a wrong address.
Is this a possible bug in the sensor controller?
Regards
Harald