Forum: ARM programming with GCC/GNU tools Thumb mode error

von Pavel Y. (Company: EPFL) (pavel_47)

Attached files:

Rate this post
0 useful
not useful

Trying to build project I get the messages like this: (also please see 
the picture):

=== Build: Debug in udp_multicast (compiler: GNU GCC Compiler for ARM) 
C:\Users\Pavel\AppData\Local\Temp\ccs3i4N5.s|575|Error: selected 
processor does not support Thumb mode `it lt'
C:\Users\Pavel\AppData\Local\Temp\ccs3i4N5.s|576|Error: Thumb does not 
support conditional execution
C:\Users\Pavel\AppData\Local\Temp\ccs3i4N5.s|583|Error: unshifted 
register required -- `orr r2,r2,#196608'|
=== Build failed: 3 error(s), 0 warning(s) (0 minute(s), 0 second(s)) 

Thanks for any suggestion.



von hellhammer (Guest)

Rate this post
0 useful
not useful
Can you show the code where the error occurs?
Which processor do you use?

von Pavel Y. (Company: EPFL) (pavel_47)

Rate this post
0 useful
not useful
Hello Hellhammer

The problem is that compiler doesn't point to the source. According to 
the error messages, the "guilty" is a some file ccs3i4N5.s (that doesn't 
exist when I try to find it in the specified location).

The target processor is CC2538: ARM Cortex™ M3 With Code Prefetch.
I'm not sure that it's properly specified: the source code I get from 
3rd party company, which doesn't provide support.

Is it important to specify exact type of CPU.

Before I worked with another project (but with the same CPU) and it was 




Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.