170 likes | 323 Views
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.
E N D
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 CodeWarrior IDE Run Make Debug
How to use CodeWarrior IDE • Creating a new project • ARM Executable Image
How to use CodeWarrior IDE • Files view
How to use CodeWarrior IDE • Targets view
AXD & Multi-ICE server • Starting the Multi-ICE server • Select Start → Programs → ARM Multi-ICE v2.2 → Multi-ICE Server. • Select File → Auto-configure
AXD & Multi-ICE server • AXD connects Multi-ICE configuration • Select Configure Target • Select the Multi-ICE.dll file.
AXD & Multi-ICE server • Configure processor • Clear All
AXD & Multi-ICE server • Load your program to target by ICE
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
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
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
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.
Reference • ADS_CodeWarriorIDEGuide • ADS_AssemblerGuide • ADS_DeveloperGuide • User Manual for Sansung 4510