当前位置:网站首页>嵌入式开发:嵌入式基础知识——正确启动固件项目的 10 条建议
嵌入式开发:嵌入式基础知识——正确启动固件项目的 10 条建议
2022-07-30 14:35:00 【粤嵌教育】
对开发人员提出的快速获得结果的要求可能会导致在固件实施的开始阶段跳过一些关键步骤。为了节省调试阶段的时间,嵌入式开发人员在编写任何应用程序代码之前,请将这十条建议作为起点。
1)建立一个目录结构,包括但不限于
–应用
–BSP
–建造
–库
–图书馆
–MCU驱动器
2)添加文件和搜索路径时,使用工作区和项目的相对路径。
3)使用构建文件夹来使用具有相同代码库的多个工具链。
4)在所有工具链中设置空白和制表符间距,以便代码在任何工具中都保持可读。
5)在开始时设置静态分析工具。设置分析仪以监控固件错误,并检查是否符合编码标准。
6)在项目实施的早期设置UART和printf,以便获得调试信息。
7)一旦printf启动并运行,不要忘记设置断言宏!
8)使用git或svn建立基线代码库。
9)设置Doxygen自动生成软件手册
10)使用设计模式和代码模板快速开发底层代码

嵌入式开发人员在项目实施的开始就实施其中的一些建议可以提高效率,甚至可以在开发的早期发现错误。
边栏推荐
- 去腾讯面试,直接让人出门左拐 :幂等性都不知道!
- Redis6.0 source code learning (5) ziplist
- MySQL客户端工具的使用与MySQL SQL语句
- 关于MySQL主从复制的数据同步延迟问题
- MongoDB启动报错 Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
- A simple change for problem, knapsack problem sets of shell
- This editor actually claims to be as fast as lightning!
- Allure进阶-动态生成报告内容
- What is Ts?
- Interface automation framework, lm-easytest beta version released, use it quickly~
猜你喜欢
随机推荐
canal scrape data
EasyV数字孪生流域|宁波智慧水利整体智治综合应用
Eight years of testing experience, why was the leader criticized: the test documents you wrote are not as good as those of fresh graduates
Go to Tencent for an interview and let people turn left directly: I don't know idempotency!
ToDesk版本更新,引入RTC传输技术,是否早以替代向日葵远程控制?
Android jump to google app market
What is the relationship between the construction of smart cities and 5G technology in the new era
Machine learning difference in the competition and industry application
ECCV 2022 | Towards Data Efficient Transformer Object Detectors
Get the Google Advertising ID as a unique identifier
CS内网横向移动 模拟渗透实操 超详细
71页全域旅游综合整体解决方案2021 ppt
【Vue.js 3.0源码】KeepAlive 组件:如何让组件在内存中缓存和调度?
localhost与127.0.0.1
Still saying software testing doesn't have a midlife crisis?9 years of test engineers were eliminated
双碳目标下:农田温室气体排放模拟
Flink优化
Flink本地UI运行
Understand Chisel language. 28. Chisel advanced finite state machine (2) - Mealy state machine and comparison with Moore state machine
吃透Chisel语言.29.Chisel进阶之通信状态机(一)——通信状态机:以闪光灯为例









