Post Go back to editing

PKTE engine registers are readonly

Category: Software
Product Number: ADSP-21569
Software Version: Crosscore 3.0.3

Hi,

when using the PKTE Engine, writing the pREG_PKTE0_CDSC_CNT register, the failure "expression must be a modifiable lvalue" occures.

In ADSP_2156x_HPC_cdef.h the register is defined as const.

#define pREG_PKTE0_CDSC_CNT              ((__I __C  uint32_t  *) REG_PKTE0_CDSC_CNT)              /*  Packet Engine Command Descriptor Count Register */

Same for the following registers:

#define pREG_PKTE0_INBUF_CNT             ((__I __C  uint32_t  *) REG_PKTE0_INBUF_CNT)             /*  Packet Engine Input Buffer Count Register */

#define pREG_PKTE0_OUTBUF_CNT            ((__I __C  uint32_t  *) REG_PKTE0_OUTBUF_CNT)            /*  Packet Engine Output Buffer Count Register */

Project is a c-project. (no cpp)

Regards

Bernhard