Hello! I have a project of 8bit Atmel Microcontroller. I want this project to be compiled in Keil for Cortex M3 Microcontroller. But I have some issues.
1. I have an error "SFR undefined identifier". The compiler does not understand what SFR means .
2. There are 2 files with assembler code. The compiler displays a lot of mistakes in all these files.
How to compile this project?
No, I didn't say that.
What I said was that it is not a simple matter of just taking the code from one microcontroller & toolset and simply dropping it into another.
What you need to do is to port the code from its original target & toolset to the new target & toolset.
This is, in fact, a common exercise.
en.wikipedia.org/.../Porting
As already noted, it requires that you have a good understanding of the original target & toolset and a good understanding of the new target & toolset. You will also need an understanding of the application itself.
If the original code is well written and structured to be portable, then the process of porting can be (relatively) straightforward.
en.wikipedia.org/.../Software_portability
As previously noted, assembler is inherently non-portable.