当前位置:网站首页>STM32工程移植:不同型号芯片工程之间的移植:ZE到C8
STM32工程移植:不同型号芯片工程之间的移植:ZE到C8
2022-04-23 12:22:00 【Guistar~~】
适用于开发方式为:MDK+固件库
不同芯片对应的启动文件
| FLASH大小 | 对应的后缀 |
|---|---|
| 小于64K | ld.s |
| =64 or 128 | md.s |
| hd | hd.s |
在ST给的固件库可以找到,我也会在文章后面发

其他(我没有用到):
cl:互联型产品,stm32f105/107系列
vl:超值型产品,stm32f100系列
xl:超高密度产品,stm32f101/103系列
不同型号对应FLASH大小
| 6 | 32K字节 |
|---|---|
| 8 | 8=64K字节 |
| 10 | 128K字节 |
| B | 256K字节 |
| E | 512K字节 |
| G | 1024K字节 |
1.更改启动文件
找到你想移植的启动文件,更改成对应的!!
比如我的就应该:hd.s --> md.s

2.MDK打开配置项目
-
打开工程文件,更改型号,由ZE改为C8,确定

-
更改工程中的启动文件:
把刚刚更换的启动文件添加进来:去掉原来的。
我这里更换了

-
更改定义
比如我这是HD改为MD
USE_STDPERIPH_DRIVER,STM32F10X_HD
//上面是之前的
USE_STDPERIPH_DRIVER,STM32F10X_MD

3.OK了呀!! 运行一下,如果不行重新打开MDK

版权声明
本文为[Guistar~~]所创,转载请带上原文链接,感谢
https://blog.csdn.net/EAyayaya/article/details/104901647
边栏推荐
- C# F23. Stringsimilarity Library: String repeatability, text similarity, anti plagiarism
- 论文解读(CGC)《CGC: Contrastive Graph Clustering for Community Detection and Tracking》
- Qt绘制图像
- 【vulnhub靶场】-dc2
- Fastjson 2 来了,性能继续提升,还能再战十年
- Running error: unable to find or load the main class com xxx. Application
- Why is there a wrapper class? By the way, how to convert basic data types, wrapper classes and string classes?
- Im architecture: CPU architecture: SIMD vector processing (im-2.3)
- How the database fills in IM expressions (IM 5.4)
- On lambda powertools typescript
猜你喜欢

Metalama简介4.使用Fabric操作项目或命名空间

Next. JS static data generation and server-side rendering

Recommended programming AIDS: picture tool snipaste

Qt双缓冲绘图

IDEA 数据库插件Database Navigator 插件

PSCP basic usage

亿级流量架构,服务器如何扩容?写得太好了!

《通用数据保护条例》(GDPR)系列解读三:欧洲子公司如何向国内母公司回传数据?

NativeForMySQL 连接MySQL8 提示:1251- Client does not support authentication protocol

Qt绘制图像
随机推荐
【vulnhub靶场】-dc2
为什么hash%length==hash&(length-1)的前提是 length 是 2 的 n 次方
外包干了五年,废了...
天梯赛赛前练习
How to solve the computer system card?
Pagoda panel command line help tutorial (including resetting password)
What is a gateway
面了一圈,整理了这套面试题。。
Fabric 1.0源代码分析(33) Peer #peer channel命令及子命令实现
PSCP basic usage
How the database fills in IM expressions (IM 5.4)
5分钟NLP:Text-To-Text Transfer Transformer (T5)统一的文本到文本任务模型
How do programmers finalize nucleic acid statistics with 130 lines of code
A graphic designer's fantasy world | ones characters
初探 Lambda Powertools TypeScript
Introduction to metalama 4 Use fabric to manipulate items or namespaces
Qt进程间通信
Idea database navigator plug-in
《通用数据保护条例》(GDPR)系列解读三:欧洲子公司如何向国内母公司回传数据?
Im architecture: CPU architecture: SIMD vector processing (im-2.3)