I received this error compiling a rather simple file.
This is the command line
:"C:/ti/ccsv5/tools/compiler/msp430_4.2.1/bin/cl430" -vmsp --abi=eabi --code_model=small --data_model=small -O0 --opt_for_speed=5 --include_path="C:/ti/ccsv5/ccs_base/msp430/include" --include_path="C:/Users/cbenson/Multi/Track-It 6700/inc" --include_path="C:/ti/ccsv5/tools/compiler/msp430_4.2.1/include" --advice:power="all,-2,-3,-5" -g --gen_acp_xref --gcc --gen_acp_raw --define=__MSP430F4794__ --define=MULTI --define=CCSV5 --verbose_diagnostics --diag_warning=225 --display_error_number --optimizer_interlist --remove_hooks_when_inlining --gen_opt_info=2 --printf_support=nofloat -k --c_src_interlist --asm_listing --output_all_syms --check_misra="required" --misra_advisory=suppress --misra_required=remark --preproc_with_compile --preproc_dependency="APDS-9300.pp" "../APDS-9300.c"
This is the line which caused the error:
CmdReg.cmd = 1; // this is a command
The fault went away after turning OFF MISRA checking.
I can live without MISRA, but it is like having a second set of eyes looking over ones code.