Keil Logo

How can I worjk around the A15101E error?

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Author
Kassi Kotsidou
Posted
8-Feb-2015 18:20 GMT
Toolset
ARM
New! How can I worjk around the A15101E error?

Hello. I am using the lite edition of Keil uVision4.

I try to execute the simple command: "MOV r4, #0xA6E90000". I am getting the error message: "A1510E: Immediate 0xA6E90000 cannot be represented by 0-255 and a rotation"

However, the IDE has no problem executing "MOV r4, #0xFFFFFFFF"

Author
Hans-Bernhard Broeker
Posted
8-Feb-2015 19:33 GMT
Toolset
ARM
New! RE: How can I worjk around the A15101E error?

You seem to be under the impression that this has something to do with the IDE. It doesn't.

It was your own decision to program an ARM in assembly. That decision was probably a premature one, but hey, everyone's entitled to making their own mistakes.

But now that you made that decision, you will have to at least follow through on it. That means you have to actually learn this assembly language. But you didn't, and that's what's causing you this problem. The error message you got is crystal clear.

Author
Westonsupermare Pier
Posted
9-Feb-2015 02:37 GMT
Toolset
ARM
New! RE: How can I worjk around the A15101E error?
   LDR r4, =#0xA6E90000

Not technically an immediate, it will use the optimal encoding for the constant, either as an immediate, or a literal placed in the literal pool, and accessed in a PC relative fashion.

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.