当前位置 :
英语翻译ManyapplicationswrittenforARM-basedsystemsareembeddedapplicationsthatarecontainedinROMandexecuteonreset.Thereareanumberoffactorsthatmustbeconsideredwhenwritingembeddedoperatingsystems,orembeddedapplications
 更新时间:2024-04-19 15:38:29
1人问答
问题描述:

英语翻译

ManyapplicationswrittenforARM-basedsystemsareembeddedapplicationsthatare

containedinROMandexecuteonreset.Thereareanumberoffactorsthatmustbe

consideredwhenwritingembeddedoperatingsystems,orembeddedapplicationsthat

executefromresetwithoutanoperatingsystem,including:

•RemappingROMtoRAM,toimproveexecutionspeed.

•Initializingtheexecutionenvironment,suchasexceptionvectors,stacks,I/Os.

•Initializingtheapplication.

–Forexample,copyinginitializationvaluesforinitializedvariablesfromROM

toRAMandresettingallothervariablestozero.

•Linkinganembeddedexecutableimagetoplacecodeanddatainspecificlocations

inmemory.

Foranembeddedapplicationwithoutanoperatingsystem,thecodeinROMmustprovide

awayfortheapplicationtoinitializeitselfandstartexecuting.Noautomatic

initializationtakesplaceonreset,thereforetheapplicationentrypointmustperform

someinitializationbeforeitcancallanyCcode.

Theinitializationcode,locatedataddresszeroafterreset,must:

•Marktheentrypointfortheinitializationcode.

•Setupexceptionvectors.

•Initializethememorysystem.

•Initializethestackpointerregisters.

•InitializeanycriticalI/Odevices.

•InitializeanyRAMvariablesrequiredbytheinterruptsystem.

•Enableinterrupts(ifhandledbytheinitializationcode).

•Changeprocessormodeifnecessary.

•Changeprocessorstateifnecessary.

Aftertheenvironmenthasbeeninitialized,thesequencecontinueswiththeapplication

initializationandshouldentertheCcode.

大体意思就行·

潘国锋回答:
  基于ARM的系统编写的许多应用,嵌入式应用程序的   载于ROM和执行复位.有许多因素必须   时考虑编写嵌入式操作系统或嵌入式应用   从复位执行无作业系统,包括:   •重新映射到RAM光盘,以提高执行速度.   •初始化运行环境,如异常向量,堆栈,I/O口.   •初始化应用程序.   -例如,从ROM复制为初始化的变量初始化值   到RAM和重置所有其他变量为零.   •嵌入式可执行映像链接放置在特定地点的代码和数据   在内存中.   对于没有操作系统的嵌入式应用,ROM中的代码必须提供   为应用程序的方式进行初始化并开始执行.没有自动   上电复位初始化发生的地方,因此,应用程序的入口点必须执行   一些初始化之前,它可以调用任何C代码.   初始化代码,在地址位于零复位后,必须:   •标记为初始化代码的入口点.   •设置异常向量.   •初始化内存系统.   •初始化堆栈指针寄存器.   •初始化所有关键的I/O设备.   •初始化任何RAM的中断系统所需的变量.   •使能中断(如果初始化代码来处理).   •如果有必要改变处理器模式.   •如果有必要改变处理器的状态.   之后,环境已经初始化,序列继续与应用   初始化,并应进入C代码.
最新更新
查询网(393r.com)汇总了汉语字典,新华字典,成语字典,组词,词语,在线查字典,中文字典,英汉字典,在线字典,康熙字典等等,是学生查询学习资料的好帮手,是老师教学的好助手。
声明:本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。

邮箱:  联系方式:

Copyright©2009-2021 查询网 393r.com 版权所有 闽ICP备2021002823号-6