Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Lab I Real-Time Embedded Operating System for a SoC System."— 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 How to use CodeWarrior IDE AXD and Multi-ICE AXD and Multi-ICE

3 Needless How to use ADS & Multi-ICE

4

5 How to use CodeWarrior IDE MakeDebug Run

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 & AXD & Multi-ICE server Starting the Multi-ICE server Select Start → Programs → ARM Multi-ICE v2.2 → Multi-ICE Server. Select File → Auto-configure Select File → Auto-configure

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

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

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

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

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 Writing Arm code of Fibonacci for F(n) n=10 Downloading to DRAM of Target Downloading to DRAM of Target Running your program by ICE. Running your program by ICE. Besides, watching the value of register. Besides, watching the value of register.

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


Download ppt "Lab I Real-Time Embedded Operating System for a SoC System."

Similar presentations


Ads by Google