Keil直接烧录.hex文件到芯片中

2025-11-22 20:33:32

1、打开Keil V5软件,并建立新工程

Keil直接烧录.hex文件到芯片中

Keil直接烧录.hex文件到芯片中

2、A.选择工程的路径和工程名称

B.选择芯片厂商和芯片型号

C.不添加相应的启动文件

D.工程已建立好

Keil直接烧录.hex文件到芯片中

Keil直接烧录.hex文件到芯片中

Keil直接烧录.hex文件到芯片中

Keil直接烧录.hex文件到芯片中

3、A.单击Options for Target按钮进行设置

B.Output --> Select Folder for objects选择要烧录的.hex文件,然后确定

C.在Name of Executable中输入烧录文件的全名,其他设置如下

Keil直接烧录.hex文件到芯片中

Keil直接烧录.hex文件到芯片中

Keil直接烧录.hex文件到芯片中

4、A.在Debug中选择Use和ST-Link Debugger

B.Debug --> Settings --> Debug设置如下,其中SW Device --> IDCODE必须有相应的值

C.在Debug --> Settints --> Flash Download中选择Erase Sectors、            Program、Verify、Reset and Run。在Programming  Algorithm --> Add中选择HR8P506 36K Flash,点击Add添加最后确定

Keil直接烧录.hex文件到芯片中

Keil直接烧录.hex文件到芯片中

Keil直接烧录.hex文件到芯片中

5、Utilities中去掉Use Debug Driver前的勾,在Use Target Driver for Flash programming中选择ST-Link Debugger确定

Keil直接烧录.hex文件到芯片中

6、A.单击Download下载程序

B.下载程序成功

Keil直接烧录.hex文件到芯片中

Keil直接烧录.hex文件到芯片中

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢