1 / 17

Lab I

Lab I. Real-Time Embedded Operating System for a SoC System. How to use ADS & Multi-ICE. How to use CodeWarrior IDE AXD and Multi-ICE. Needless. How to use ADS & Multi-ICE. How to use ADS & Multi-ICE. How to use CodeWarrior IDE. Run. Make. Debug. How to use CodeWarrior IDE.

feo
Download Presentation

Lab I

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lab I Real-Time Embedded Operating System for a SoC System

  2. How to use ADS & Multi-ICE • How to use CodeWarrior IDE • AXD and Multi-ICE

  3. Needless How to use ADS & Multi-ICE

  4. How to use ADS & Multi-ICE

  5. How to use CodeWarrior IDE Run Make Debug

  6. How to use CodeWarrior IDE • Creating a new project • ARM Executable Image

  7. How to use CodeWarrior IDE • Files view

  8. How to use CodeWarrior IDE • Targets view

  9. AXD & Multi-ICE server • Starting the Multi-ICE server • Select Start → Programs → ARM Multi-ICE v2.2 → Multi-ICE Server. • Select File → Auto-configure

  10. AXD & Multi-ICE server • AXD connects Multi-ICE configuration • Select Configure Target • Select the Multi-ICE.dll file.

  11. AXD & Multi-ICE server • Configure processor • Clear All

  12. AXD & Multi-ICE server • Load your program to target by ICE

  13. Startup code’s flow LabⅠ Fabonacci sequence Reset_Handler Reset Reset Undefined Undefined_Handler B . Undefined SWI Prefetch DataAbort IRQ FIQ_Handler FIQ B . FIQ Exception Vector Exception Handler Exception

  14. ResetHandler AREA inits, CODE, READONLY IMPORT _main ENTRY LDR PC,Addr_Reset ;B ResetHandler LDR PC,Addr_Undefined ;B UndefinedHandler …以下省略 Addr_Reset DCD ResetHandler Addr_Undefined DCD UndefinedHandler …以下省略 ResetHandler …Coding B Initial_SP

  15. Initial_SP LDR r1,=0x0 ;Grows up from 0x0 ;IRQ_MODE MOV r0,#(0x12|0x80|0x40) MSR cpsr_cxsf,r0 MOV sp,r1 ADD r1,r1,#0x5000 ;Stack Size ;FIQ_MODE MOV r0,#(0x11|0x80|0x40) MSR cpsr_cxsf,r0 MOV sp,r1 ADD r1,r1,#0x5000 ;Stack Size ;SVC_MODE MOV r0,#(0x13|0x80|0x40) MSR cpsr_cxsf,r0 MOV sp,r1 ADD r1,r1,#0x10000 ;Stack Size MOV r4,r1 ; ########## Enter user's main()' B _main END

  16. Lab I • Writing Arm code of Fibonacci for F(n) n=10 • Downloading to DRAM of Target • Running your program by ICE. • Besides, watching the value of register.

  17. Reference • ADS_CodeWarriorIDEGuide • ADS_AssemblerGuide • ADS_DeveloperGuide • User Manual for Sansung 4510

More Related