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?
Hello Max,
You may want to check with Atmel to see if there is a comparable Cortex-M part to your 8051. They may have a Cortex-M0 which peripherals would be similar to those of the 8051.
ARM made a good porting guide to explain the general differences between the 2 architectures.
developer.arm.com/.../application-note-237-migrating-from-8051-to-cortex-microcontrollers
Make sure to check out the videos on keil.com/learn to better understand the features of your Cortex Device.
When porting code, it is good to find an existing example that does what you want to do and work backwards.
You can use the Pack installer to browse examples, and see if you can find one that is similar to what you need for your new ARM device.
http://www.keil.com/support/man/docs/uv4/uv4_ca_packinstaller.htm
See also the device information on
http://www.keil.com/dd2/
Good luck with your port.