ARM Technical Support Knowledge Articles

ERROR 185 (ATOMIC #5 OUT OF RANGE)

Applies to: C166 C Compiler

Answer


Information in this article applies to:


QUESTION

I'm using the _atomic_ (0) function and I receive the following error message:

*** ERROR 185 IN LINE 147 OF .	imer.c: atomic #5: out of range

How can I fix this?

ANSWER

This error message indicates that the code between the _atomic_ (0) and _endatomic_ functions is larger than 4 instructions. Atomic code can only be 4 instructions or less.

Reduce the amount of code that you want to make atomic or consider using the #pragma disable directive.

MORE INFORMATION

SEE ALSO

Article last edited on: 2005-07-15 13:22:11

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential