当前位置:网站首页>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
边栏推荐
- The GLM function of R language is used to build a binary logistic regression model (the family parameter is binomial), and the AIC function is used to compare the AIC values of the two models (simple
- deep learning statistical arbitrage
- Open source model library of flying propeller industry: accelerating the development and application of enterprise AI tasks
- 21: Chapter 3: develop pass service: 4: further improve [send SMS, interface]; (in [send SMS, interface], call Alibaba cloud SMS service and redis service; a design idea: basecontroller;)
- 旭日3SDB,安装原版ros
- 千万不要错过,新媒体运营15个宝藏公众号分享
- 【TcaplusDB知识库】TcaplusDB-tcapsvrmgr工具介绍(一)
- Deep learning in finance in cross sectional sectional predictions for random forests
- Interview shock 60: what will cause MySQL index invalidation?
- 【TcaplusDB知识库】TcaplusDB系统用户组介绍
猜你喜欢

C/s architecture

机器学习系统在生产中的挑战

一篇抄十篇,CVPR Oral被指大量抄袭

【TcaplusDB知识库】TcaplusDB常规单据介绍

0 basic understanding of how e-commerce systems connect with payment channels

面试突击60:什么情况会导致 MySQL 索引失效?

Unity Shader学习(二)第一个Shader

2022CISCN华中 Web

Glide caching mechanism
![[tcapulusdb knowledge base] tcapulusdb doc acceptance - table creation approval introduction](/img/da/449a1e215885597a67344e2a6edf0f.png)
[tcapulusdb knowledge base] tcapulusdb doc acceptance - table creation approval introduction
随机推荐
[tcapulusdb knowledge base] tcapulusdb OMS business personnel permission introduction
[tcapulusdb knowledge base] Introduction to tcapulusdb system management
R语言使用epiDisplay包的poisgof函数对泊松回归(Poisson Regression)执行拟合优度检验、检验是否存在过度离散问题(overdispersion)
After Jerry's sleep, the regular wake-up system continues to run without resetting [chapter]
巅峰小店APP仿站开发玩法模式讲解源码分享
杰理之IO 口中断使用注意事项【篇】
Microsoft cloud technology overview
R语言使用glm函数构建泊松对数线性回归模型处理三维列联表数据构建饱和模型、使用step函数基于AIC指标实现逐步回归筛选最佳模型、解读分析模型
QStyle类用法总结(三)
【TcaplusDB知识库】TcaplusDB业务数据备份介绍
[tcapulusdb knowledge base] tcapulusdb system user group introduction
R语言glm函数构建二分类logistic回归模型(family参数为binomial)、使用AIC函数比较两个模型的AIC值的差异(简单模型和复杂模型)
21:第三章:开发通行证服务:4:进一步完善【发送短信,接口】;(在【发送短信,接口】中,调用阿里云短信服务和redis服务;一种设计思想:BaseController;)
杰理之串口通信 串口接收IO需要设置数字功能【篇】
The GLM function of R language is used to build a binary logistic regression model (the family parameter is binomial), and the AIC function is used to compare the AIC values of the two models (simple
21: Chapter 3: develop pass service: 4: further improve [send SMS, interface]; (in [send SMS, interface], call Alibaba cloud SMS service and redis service; a design idea: basecontroller;)
[tcapulusdb knowledge base] Introduction to tmonitor system upgrade
【TcaplusDB知识库】TcaplusDB-tcapsvrmgr工具介绍(一)
Codeforces Round #786 (Div. 3) ABCDE
【TcaplusDB知识库】TcaplusDB系统管理介绍