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.

代码移植到F28377D编译不过

代码错误行:
switch(((CMD_UNION)(v->pSor[*v->pThread])).bit_inst.Cmd)其中CMD_UNION定义为:
typedef union {
   UINT16  all;
   struct CMDSTRUCT bit_inst;
}CMD_UNION;


v定义为:
typedef struct {  INT16 *pSor;

.
                                 .
                                 .

              UINT16* pThread;

                          .
                                  .
                                  .

} PPPARAM;

error:#120 cast to type "CMD_UNION" is not allowed        ProgParam.c
用F28M35的M3核编译是可以编译过的,用F28377D的CUP1核就编译不过,为什么呢?