当前位置:网站首页>i. Construction of mx6ull C language environment
i. Construction of mx6ull C language environment
2022-06-27 11:45:00 【Wang incredable Ke】
Catalog
One · Set processor mode
Set the processor to SVC In mode .
Set up CPSR The register of bit4-0, That is to say M[4:0] by 10011=0x13. The specific operations for reading and writing the status register are
MRS // take CPSR Register read to general purpose register
MSR // Write the value in the general register to CPSR register
( If you don't know what is svc Model students can read arm Architecture )
Two . Set up SP The pointer
sp Can point to the inside RAM, You can also point to DDR, We point it to DDR.
With 6ull For example ,512MB Of DDR The address is 0x80000000-0x9fffffff... The stack size is 0x20000=2MB
commonly arm Schema code is growing downward .
So set sp Point to 0x800000000+ Stack size 0x20000=0x80020000
.global _start /* Global label */
/*
* describe : _start function , The program starts executing from this function , The main function of this function is to set C
* Running environment .
*/
_start:
/* Get into SVC Pattern */
mrs r0, cpsr
bic r0, r0, #0x1f /* take r0 Low in register 5 A reset , That is to say cpsr Of M0~M4 */
orr r0, r0, #0x13 /* r0 Or on the 0x13, Said the use of SVC Pattern */
msr cpsr, r0 /* take r0 Data written to cpsr_c in */
ldr sp, =0X80200000 /* Set the stack pointer */
b main /* Jump to main function */
Here, please refer to the code of zuozhongkai
If you use ddr The chip needs to be initialized first ddr You need to initialize in the startup file first ddr
边栏推荐
- 【TcaplusDB知识库】TcaplusDB运维单据介绍
- Leetcode 177 The nth highest salary (June 26, 2022)
- [tcapulusdb knowledge base] tcapulusdb business data backup introduction
- 【TcaplusDB知识库】TcaplusDB系统管理介绍
- I.MX6ULL启动方式
- [tcapulusdb knowledge base] tcapulusdb doc acceptance - create business introduction
- Code for structural design of proe/creo household appliances - electric frying pan
- 【TcaplusDB知识库】TcaplusDB数据导入介绍
- R语言使用epiDisplay包的followup.plot函数可视化多个ID(病例)监测指标的纵向随访图、使用stress.labels参数在可视化图像中为强调线添加标签信息
- Build the Internet of things system from scratch
猜你喜欢
Unity shader learning (I) understanding the basic structure of unity shader
Challenges of machine learning system in production
Rxjs mergeMap 的使用场合
L'utilisation de C language 0 length Array
Build the Internet of things system from scratch
【TcaplusDB知识库】TcaplusDB运维单据介绍
Drive to APasS!使用明道云管理F1赛事
【TcaplusDB知识库】TcaplusDB单据受理-建表审批介绍
[tcapulusdb knowledge base] tcapulusdb doc acceptance - Introduction to creating game area
[tcapulusdb knowledge base] tcapulusdb doc acceptance - transaction execution introduction
随机推荐
Deep learning in finance in cross sectional sectional predictions for random forests
Xuri 3sdb, installing the original ROS
Drive to APasS! Use Mingdao cloud to manage F1 events
Heap heap sort TOPK
[tcapulusdb knowledge base] tcapulusdb system user group introduction
千万不要错过,新媒体运营15个宝藏公众号分享
【TcaplusDB知识库】TcaplusDB数据导入介绍
R语言fpc包的dbscan函数对数据进行密度聚类分析、plot函数可视化聚类图
Codeforces Round #786 (Div. 3) ABCDE
杰理之睡眠以后定时唤醒系统继续跑不复位【篇】
R language uses GLM function to build Poisson logarithm linear regression model, processes three-dimensional contingency table data to build saturation model, uses step function to realize stepwise re
杰理之添加定时器中断【篇】
deep learning statistical arbitrage
Leetcode 729. My schedule I (awesome, solved)
VPT Model Video Explanation
R语言使用glm函数构建泊松对数线性回归模型处理三维列联表数据构建饱和模型、使用step函数基于AIC指标实现逐步回归筛选最佳模型、解读分析模型
Leetcode 177 The nth highest salary (June 26, 2022)
Qstype implementation of self drawing interface project practice (I)
0基础了解电商系统如何对接支付渠道
"Internet +" contest topic hot docking | I figure to understand 38 propositions of Baidu