Because many of the old Code is compiled by ads1.2, this problem is common to all users.
There are a lot of handouts on the Internet, so I will not talk about the principles ~~
However, pay attention to the following points during the transplantation process to completely transplant the project.
Environment: Simplified Chinese XP Professional + SP3 + ADS 1.2 + Keil 3.5
1. Create a New root directory such as "D:/Keil/ARM/examples/ads2keil"
2. Create three more folders in this directory: SRC, cmd_file, and obj.
3. Copy all files in the source code folder (SRC) of ads to our SRC folder.
4. copy some pin C files and header files to our pai_file folder.
5. Open Keil to create a new project. In the "select device for target 'target 1'" dialog box, select the chip to work on.
6. In the pop-up dialog box, "Copy Samsung startup code to project folder and add file to project ?", Click "no ". It is not the Startup File of Keil, because ads already has it.
7. Click "setup file extensions, books and environment.
Change the name in project targets and the name in group is SRC.
Add performance_file to groups.
Click "src" and then click "add files" to add all *. C, *. H, and *. s under SRC to this list.
Click cfg_file, and then click Add files to add all *. C and *. h under cfg_file to this list.
Click "OK" to import the file.
8. Click "options for target.
Click the "linker" tab.
In the edit box "Misc controls", enter "-- info totals -- entry 0x00000000 -- scatter./src/mem_c.scf -- info sizes ".
Click "OK" to complete the connector settings.
9. In "project workspace", double-click the "startup. s" file.
"Code32" code. Enter "preserve8" in the next line ".
Save. Complete the code startup.
10. compiled.
If you have any suggestions or questions about the above steps. You can leave a message for me.