Other Parts Discussed in Thread: CCSTUDIO
Tool/software: Code Composer Studio
Dear TI-Service team,
I unfortunately ran into a problem with the CC2640R2F Assembler or Compiler.
It constantly issues the error [E0004] invalid immediate operand with no obvious reason to me.
I use Code Composer V 8.3.0.00009
Compiler TI v18.1.4.LTS
>>> ERROR text in console :
1 Assembly Error, No Assembly Warnings
>> Compilation failure
Application/quuppa/subdir_rules.mk:9: recipe for target 'Application/quuppa/quuppa.obj' failed
"C:\Users\andy\AppData\Local\Temp\{4EB32958-7C33-4C86-A48F-2650AE8328CB}", ERROR! at line 231: [E0004] Invalid Immediate operand
MOV A2, #-13818 ; [DPU_V7M3_PIPE] |53|
Errors in Source - Assembler Aborted
gmake: *** [Application/quuppa/quuppa.obj] Error 1
gmake: Target 'all' not remade because of errors.
>>> ERROR text in console END
>>> Code line where it is issued
StdError ExampleClass::clear(Type type)
{
StdError ret = E_GENERAL_ERROR; <<<< here it is issued! E_GENERAL_ERROR is an enum type with value -1
return ret;
}
>>> Code line where it is issued - END
It seems to be issued on the last line of code in this file where an enum value is used.
If this error is once seen in a project it constantly stays (will be issued again) on the same line of the C-file. Irrespective of changements in the C file or any other stepps I tried.
I tired already:
1. cleaning and rebuilding
2. creating a new workspace and import the project again.
3. clone a new GIT repository
4. delete all build configuration folders and build again
It seems to be connected with a certain build configuration where a debug predefine is activated in the project (in the release build configuration it is never issued!).
As well I maybe should mention that there is very little flash memory available in this project (suppose 0h880 (2176) bytes) but this should result in a different error.
please help I'm really stuck here and we are in need of publishing a feature release this week!
kind regards
Andreas