Switch arm ads to Keil

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.