摘要
结合ARM Cortex-M4的地址映射、工程链接文件intflash.ld分析Kinetis MK60DN512ZVLQ10芯片的地址空间的分配情况,剖析芯片从加电复位跳转到驻留在ROM开始地址的中断向量表处执行,依次完成系统堆栈指针、进程堆栈指针、切换堆栈指针等设置,最后调用MQX初始化函数完成MQX-RTOS的启动,在对启动过程的代码进行合理裁剪的基础上,给出较详细的注释,为研究其他RTOS的启动提供一定的借鉴。
Based on ARM Cortex-M4's address mapping and the project link file "intflash.ld", this paper analyzes the address space distribution statement of Kinetis MK60DN512ZVLQ10 chip, and the starting process of the chip, which first jumps to the interrupt vector table at the beginning of the ROM address after power on reset, and then sets the system stack pointer, process stack pointer, switches stack pointer, and finally calls the MQX initialization function to complete the MQX-RTOS starting process. In the basis of reasonable tailoring the start-up code, this paper gives more detailed annotations, which provide certain reference for the further study of other RTOS.
出处
《自动化与信息工程》
2015年第4期24-28,共5页
Automation & Information Engineering
基金
国家自然科学基金资助项目(61070169:无线网传感器网络中紧急事件信息发布的可靠性研究)