background image

 

TiniARM Development Kit: User Manual

Jan 3, 2005

 

TiniARM Development Kit

 

User Manual V.3

Содержание TiniARM

Страница 1: ...TiniARM Development Kit User Manual Jan 3 2005 TiniARM Development Kit User Manual V 3...

Страница 2: ...g gnude on W2K 3 1 5 Included Files 3 2 0 Compiling 3 2 1 Makefile 4 2 2 simple cmd 5 2 3 main c 5 2 4 ivt s 8 2 5 start s 10 3 0 Downloading 10 4 0 Testing 11 5 0 Final Result 11 6 0 Helps 11 6 1 Com...

Страница 3: ...e PC with COM port compiler downloader terminal program patience luck and the NMI help forum 1 1 Overview First edit your source code compile it with a compiler link it and write it out with a loader...

Страница 4: ...wnloads The tool cannot handle les which are both RAM and Flash You will get messages complaining about memory out of range This could be something destined for RAM space like an initialized variable...

Страница 5: ...for these included here are simple and will need to be augmented as an application grows Probably the next best thing to add to the make le is some semblence of proper directory structure where source...

Страница 6: ...S interrupt vectors 0x0 start of flash interp interp code and constants text text strings rodata init comment uninitialized data 0x40000000 start of ram bss bss COMMON data 2 3 main c code originally...

Страница 7: ...id tx_str char s send a string while s if tx_query tx s MAIN void __main void char x char 0 y char 0x1000 Initialize the system Initialize Start timer Interrupts not working yet so this code is commen...

Страница 8: ...d and yellow off Initialize PLL Configured for a 10MHz crystal to boost processor clock to 60MHz Setting Multiplier and divider values PLLCFG 0x25 feed Enabling the PLL PLLCON 0x1 feed Wait for the PL...

Страница 9: ...out UART0_FCR 0x7 enable and reset fifos UART0_LCR 0x83 8 bits enable divisor latches UART0_DLL 0x87 LSB divider for 60mhz to be 9600x16 UART0_DLM 0x01 MSB UART0_LCR 0x3 disable divisor latches Timer...

Страница 10: ...his feature built in so the end user need not worry about it If the tool does not provide this feature then the value has to be computed manually and has to be inserted at 0x14 Details on computation...

Страница 11: ...FIQ mode Change mode before setting each one move back again to Supervisor mode Each interrupt has its own link register stack pointer and program counter The stack pointers must be initialized for in...

Страница 12: ...when it does you should see Test echo and if you type it should be echoed Congratulations 6 0 Helps These are the help screens from some of the tools and can be a useful reference 6 1 Compiler arm el...

Страница 13: ...ad the PIC register in function prologues mno sched prolog Do not move instructions into a function s prologue mabort on noreturn Generate a call to abort if a noreturn function returns mthumb interwo...

Страница 14: ...locs into one section z nocopyreloc Don t create copy relocs z nodefaultlib Mark object not to use default search paths z nodelete Mark DSO non deletable at runtime z nodlopen Mark DSO not available t...

Страница 15: ...ta column of the listing listing lhs width2 set the width in words of the continuation lines of the output data column ignored if smaller than the width of the first line listing rhs width set the max...

Страница 16: ...nly no omagic Page align data make text readonly o FILE output FILE Set output file name O Optimize output file Qy Ignored for SVR4 compatibility q emit relocs Generate relocations in final output r i...

Страница 17: ...defined symbols in shared objects allow multiple definition Allow multiple definitions no undefined version Disallow undefined version no warn mismatch Don t warn about mismatched input files no whole...

Страница 18: ...to interpose all DSOs but executable z loadfltr Mark object requiring immediate process z muldefs Allow multiple definitions z nocombreloc Don t merge dynamic relocs into one section z nocopyreloc Don...

Страница 19: ...al no change warnings no adjust warnings Warn if a named section does not exist set section flags name flags Set section name s properties to flags add section name file Add section name found in file...

Отзывы: