This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem with Keil

I need to do a multiplication in the keil and the following mistake goes out for me. It does not leave me to use MLU and MUL. Why?

error: A1477W: This register combination results in UNPREDICTABLE behaviour

Parents
  • anyone can tell me why?

    It's because in contrast to your statement, you rather obviously are using Thumb mode --- otherwise you wouldn't be getting a Thumb-only error message.

    It's clear you don't know how you ended up in Thumb mode, but there you are.

    All of this only strengthens my argument that at least right now you need to not do this in assembly. You need to learn the tools first, and you need to learn the finer points of ARM and Thumb assembly language. By then you hopefully will have learned how to decide what should be done in assembly and what shouldn't.

Reply
  • anyone can tell me why?

    It's because in contrast to your statement, you rather obviously are using Thumb mode --- otherwise you wouldn't be getting a Thumb-only error message.

    It's clear you don't know how you ended up in Thumb mode, but there you are.

    All of this only strengthens my argument that at least right now you need to not do this in assembly. You need to learn the tools first, and you need to learn the finer points of ARM and Thumb assembly language. By then you hopefully will have learned how to decide what should be done in assembly and what shouldn't.

Children