兵工自动化
兵工自動化
병공자동화
ORDNANCE INDUSTRY AUTOMATION
2015年
4期
64-66,77
,共4页
TMS320F28335%内存对齐%μcos-ii%栈空间结构
TMS320F28335%內存對齊%μcos-ii%棧空間結構
TMS320F28335%내존대제%μcos-ii%잔공간결구
TMS320F28335%memory alignment%μcos-ii%stack structure
为提高μcos-ii 移植代码的稳定性和可靠性,避免在实际使用过程中可能出现的问题,针对 DSP TMS320F28335在进行32位数据存取时,要求偶地址对齐这一特殊情况,通过仔细分析中断过程中堆栈指针的变化,对μcos-ii的任务栈空间结构做出了相应的调整,并基于这种调整给出了移植函数及应用程序编写的指导性说明,同时设计了一个用于测试移植代码的实验。结果表明:文中所提的移植方法是可行的,能够使μcos-ii达到任务调度的目的。
為提高μcos-ii 移植代碼的穩定性和可靠性,避免在實際使用過程中可能齣現的問題,針對 DSP TMS320F28335在進行32位數據存取時,要求偶地阯對齊這一特殊情況,通過仔細分析中斷過程中堆棧指針的變化,對μcos-ii的任務棧空間結構做齣瞭相應的調整,併基于這種調整給齣瞭移植函數及應用程序編寫的指導性說明,同時設計瞭一箇用于測試移植代碼的實驗。結果錶明:文中所提的移植方法是可行的,能夠使μcos-ii達到任務調度的目的。
위제고μcos-ii 이식대마적은정성화가고성,피면재실제사용과정중가능출현적문제,침대 DSP TMS320F28335재진행32위수거존취시,요구우지지대제저일특수정황,통과자세분석중단과정중퇴잔지침적변화,대μcos-ii적임무잔공간결구주출료상응적조정,병기우저충조정급출료이식함수급응용정서편사적지도성설명,동시설계료일개용우측시이식대마적실험。결과표명:문중소제적이식방법시가행적,능구사μcos-ii체도임무조도적목적。
In order to improve the stability and reliability of the codes for transplant μcos-ii and avoid possible problems in the using process, this paper analyzed the changes of stack pointer in the interrupt process carefully by contraposing to the fact that DSP TMS320F28335 expects memory wrappers or peripheral-interface logic to align any 32-bit read or write to an even address, made some adjustments of the task stack structure ofμcos-ii and gave a guidance of coding for transplant functions and applications based on these adjustments. At last, an experiment was designed to test the transplant codes. The result shows that this method is feasible and can achieve the task switch purpose ofμcos-ii.