Lab i
Download
1 / 17

Lab I - PowerPoint PPT Presentation


  • 112 Views
  • Uploaded on

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.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Lab I' - feo


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Lab i

Lab I

Real-Time Embedded

Operating System for a SoC

System


How to use ads multi ice
How to use ADS & Multi-ICE

  • How to use CodeWarrior IDE

  • AXD and Multi-ICE


How to use ads multi ice1

Needless

How to use ADS & Multi-ICE




How to use codewarrior ide1
How to use CodeWarrior IDE

  • Creating a new project

    • ARM Executable Image




Axd multi ice server
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 server1
AXD & Multi-ICE server

  • AXD connects Multi-ICE configuration

    • Select Configure Target

    • Select the Multi-ICE.dll file.


Axd multi ice server2
AXD & Multi-ICE server

  • Configure processor

    • Clear All


Axd multi ice server3
AXD & Multi-ICE server

  • Load your program to target by ICE


Startup code s flow
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
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 i1
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
Reference

  • ADS_CodeWarriorIDEGuide

  • ADS_AssemblerGuide

  • ADS_DeveloperGuide

  • User Manual for Sansung 4510


ad