ARM9 Learning 1-Installation and Use of Keil uVision 4.14

Publisher:水手谷水手Latest update time:2019-10-22 Source: 51heiKeywords:ARM9  Keil  uVision Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. Assembly language preparation ----- Installation of editor RealView MDK Keil uVision 4.14

1. First, double-click the welcome interface of Keil u Vision 4.14




2. After next, the interface for accepting the installation is displayed.



3. After next, the custom installation directory interface




4. After next, fill in the user information interface




5. After next, the interface of successful installation is displayed.




6. After finishing, you can successfully install MDK ARM V4,14




7. After finish, a short installation interface will be displayed




8. Create a new project ------- new --------u Vision project Create hello.uvproj project in the hello world folder




9. Choose a CPU for the project. I chose Samsung's s3c2410A.




10. Attention!!! Attention!!! This is a simple assembly program, so there is no need to add startup code. Otherwise, the following error will appear when compiling:

        hello.axf: Error: L6411E: No compatible library exists with a definition of startup symbol __main.




11. Select the development tool project---manage---components




12. After OK, create the assembler source file file---new test.s (assembler source file) test.sct (scatter loading file) DebugInRam.ini (debugging script file) file

        And set the compilation and connection control options. Configure the Target interface (project---option for target), and add the test.s file to the project. Project-------right click----Add---group -----add files to




13. Basic Configuration ----- Linker




14. Basic Configuration--Debug ----   




15. Compile and connect the project projiect ---> Build target (F7 shortcut key) Debug the project Debug ----startstop Debug Session (Ctrl + F5 shortcut key)

    Remark:

test.s file





  • addr equ 0x31000100  

  •      preserve8  

  •      area reset,code,readonly  

  •      entry  

  •      arm  

  • start ldr r0,=addr  

  •       mov r1,#10  

  •       mov r2,#20  

  •       add r1,r1,r2  

  •       str r1,[r0]  

  •       b start  

  •       end  



test.sct file



  • LR_ROM1 0x30000000  

  • {  

  •   

  •   

  • ER_ROM1 0x3000000 0x1000000  

  • {  

  •   

  •   

  • *.o(RESET,+First)  

  • *(InRoot$$Sections)  

  • .ANY(+RO)  

  •   

  • }  

  •   

  • RW_RAM1 0x31000000 0x01000000  

  • {  

  •   

  • .ANY(+RW+ZI)  

  •   

  • }  

  •   

  • RW_IRAM 0x40000000 0x00001000  

  • {  

  •   

  • .ANY(+RW+ZI)  

  •   

  • }  

  •   

  • }  



DebugInRam.ini File


  • FUNC void Setup(void)  

  • {  

  •   

  •   

  • PC=0x030000000  

  •   

  • }  

  •   

  • map 0x00000000,0x00200000 read write exec   

  • map 0x30000000,0x34000000 read write exec  

  • Setup();  


I still don't understand the Scatter file. It should be related to the address space allocation of a specific practical development board. I'm looking into it.


Keywords:ARM9  Keil  uVision Reference address:ARM9 Learning 1-Installation and Use of Keil uVision 4.14

Previous article:ARM commonly used pseudo instructions
Next article:Linux Embedded ARM-Linux Basics

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号