there are 2 assembler lines in my C-code that cause an error when they are compiled as "THUMB Flash Release":
__asm__("mov r3, #0x0E0000008");
__asm__("add r3, #0x68000");
Everything is fine if compilation is done as "THUMB Flash Debug".
(I am using CrossWorks for ARM Release 220.127.116.111031400.10321.)
The error message for the first line is
"Error: invalid immediate:'-536870904 is out of range
Error: value of -536870904 too large for field of 2 bytes at 676"
Besides that a warning pops up saying
"Can't open E:\...\THUMB Flash Release\tmpa03452 for reading"
I have compared the DEBUG and RELEASE properties and found that the optimization
levels were different. But setting it back from LEVEL1 to NONE in the RELEASE properties did not solve the problem.
Does anybody know how to overcome this issue?
The second question is regarding that message "2 bytes at 676".
Supposing I would not have found the erroneous code, to which file does "676" refer?
Is it a line number or address and could it help me to locate the source of trouble?
Any hints are welcome!
Thank you in advance.
Please sign in to leave a comment.