This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640: Sensor Controller studio: False struct packing

Part Number: CC2640

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