基于ARM的系統(tǒng)編寫的許多應(yīng)用,嵌入式應(yīng)用程序的
載于ROM和執(zhí)行復(fù)位.有許多因素必須
時(shí)考慮編寫嵌入式操作系統(tǒng)或嵌入式應(yīng)用
從復(fù)位執(zhí)行無作業(yè)系統(tǒng),包括:
•重新映射到RAM光盤,以提高執(zhí)行速度.
•初始化運(yùn)行環(huán)境,如異常向量,堆棧,I / O口.
•初始化應(yīng)用程序.
- 例如,從ROM復(fù)制為初始化的變量初始化值
到RAM和重置所有其他變量為零.
•嵌入式可執(zhí)行映像鏈接放置在特定地點(diǎn)的代碼和數(shù)據(jù)
在內(nèi)存中.
對于沒有操作系統(tǒng)的嵌入式應(yīng)用,ROM中的代碼必須提供
為應(yīng)用程序的方式進(jìn)行初始化并開始執(zhí)行.沒有自動
上電復(fù)位初始化發(fā)生的地方,因此,應(yīng)用程序的入口點(diǎn)必須執(zhí)行
一些初始化之前,它可以調(diào)用任何C代碼.
初始化代碼,在地址位于零復(fù)位后,必須:
•標(biāo)記為初始化代碼的入口點(diǎn).
•設(shè)置異常向量.
•初始化內(nèi)存系統(tǒng).
•初始化堆棧指針寄存器.
•初始化所有關(guān)鍵的I/ O設(shè)備.
•初始化任何RAM的中斷系統(tǒng)所需的變量.
•使能中斷(如果初始化代碼來處理).
•如果有必要改變處理器模式.
•如果有必要改變處理器的狀態(tài).
之后,環(huán)境已經(jīng)初始化,序列繼續(xù)與應(yīng)用
初始化,并應(yīng)進(jìn)入C代碼.
英語翻譯
英語翻譯
Many applications written for ARM-based systems are embedded applications that are
contained in ROM and execute on reset.There are a number of factors that must be
considered when writing embedded operating systems,or embedded applications that
execute from reset without an operating system,including:
• Remapping ROM to RAM,to improve execution speed.
• Initializing the execution environment,such as exception vectors,stacks,I/Os.
• Initializing the application.
– For example,copying initialization values for initialized variables from ROM
to RAM and resetting all other variables to zero.
• Linking an embedded executable image to place code and data in specific locations
in memory.
For an embedded application without an operating system,the code in ROM must provide
a way for the application to initialize itself and start executing.No automatic
initialization takes place on reset,therefore the application entry point must perform
some initialization before it can call any C code.
The initialization code,located at address zero after reset,must:
• Mark the entry point for the initialization code.
• Set up exception vectors.
• Initialize the memory system.
• Initialize the stack pointer registers.
• Initialize any critical I/O devices.
• Initialize any RAM variables required by the interrupt system.
• Enable interrupts (if handled by the initialization code).
• Change processor mode if necessary.
• Change processor state if necessary.
After the environment has been initialized,the sequence continues with the application
initialization and should enter the C code.
大體意思就行·
Many applications written for ARM-based systems are embedded applications that are
contained in ROM and execute on reset.There are a number of factors that must be
considered when writing embedded operating systems,or embedded applications that
execute from reset without an operating system,including:
• Remapping ROM to RAM,to improve execution speed.
• Initializing the execution environment,such as exception vectors,stacks,I/Os.
• Initializing the application.
– For example,copying initialization values for initialized variables from ROM
to RAM and resetting all other variables to zero.
• Linking an embedded executable image to place code and data in specific locations
in memory.
For an embedded application without an operating system,the code in ROM must provide
a way for the application to initialize itself and start executing.No automatic
initialization takes place on reset,therefore the application entry point must perform
some initialization before it can call any C code.
The initialization code,located at address zero after reset,must:
• Mark the entry point for the initialization code.
• Set up exception vectors.
• Initialize the memory system.
• Initialize the stack pointer registers.
• Initialize any critical I/O devices.
• Initialize any RAM variables required by the interrupt system.
• Enable interrupts (if handled by the initialization code).
• Change processor mode if necessary.
• Change processor state if necessary.
After the environment has been initialized,the sequence continues with the application
initialization and should enter the C code.
大體意思就行·
其他人氣:562 ℃時(shí)間:2020-05-22 07:24:55
優(yōu)質(zhì)解答
我來回答
類似推薦
猜你喜歡
- 1人類的視覺是什么視覺,是真正看見嗎?
- 2為什么漢語拼音與英文字母一樣?
- 3英語高手可以幫我看一篇文章有什么語法或詞匯錯誤嗎?還能添加點(diǎn)什么嗎?
- 4在家庭電路中,以下情況會引起保險(xiǎn)絲熔斷的是( ?。?A.用測電筆接觸火線 B.連接電路時(shí)誤將火線與零線接通 C.將開關(guān)用導(dǎo)線接通 D.電路中用電器總功率過大
- 5理想,在饑餓面前,它是糧食……仿寫句子兩句?
- 6焰色反應(yīng)是一種化學(xué)反應(yīng)嗎?
- 7This ruler is green.同意句
- 8某年的10月份有5個星期二,4個星期三,這年的國慶節(jié)是星期幾
- 9用一根鐵絲圍成一個邊長是8分米的正方形,如果把它拉成平行四邊形,面積減少了16平方分米,這個平行四邊形的高是多少分米?
- 10They arrived at teh small village_____(safe)at last
- 11分?jǐn)?shù)應(yīng)用題一批稻谷放在甲,乙兩個糧庫中,甲庫所存的稻谷數(shù)量是乙?guī)斓陌朔种?后來從甲庫取出42噸,乙?guī)?/a>
- 12You'll never marry her-She's much too good for you