| 代码错误行: 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核就编译不过,为什么呢? |