如何在keil4中添加STC单片机

如何在keil4中添加STC单片机,第1张

1、在STC的官网下载好最新的STC-ISP软件,然后在电脑上打开此软件。

2、在kiel仿真设置页面下,点击“添加STC仿真驱动到keil软件中/添加型号和头文件到keil软件中”选项。

3、然后在电脑中选择keil的安装目录(如:C:\keil),选中keil文件夹,点击确定按钮。

4、然后在d出的对话框中,直接点击确定按钮。

5、打开keil4软件,新建一个工程文件,就可以通过下拉箭头选择STC MCU Database。

6、然后在出来的界面中,选择好需要的stc单片机型号即可。

1.如你电脑安装为KEIL4,那么请选择“MDK-ARM V4”

2.如你电脑安装为KEIL5,那么请选择“MDK-ARM V5”

配置完成后,选择GENERATE CODE 后d出对话如下,请选择 OPEN Project

至此,配置完成。

针对KEIL打开之后,提示不能打开或读取项目文件的可能说明如下:

STM32CubeMX配置的芯片型号与KEIL4/5的不符合,那么在KEIL中添加该芯片导入,然后再重新配置STM32CubeMX 即可解决;

STM32CubeMX配置的编译工具不匹配,请选择在可选的编译工具,添加相应芯片文件导入即可;

编译环境安装问题,可能性很少;只要能正常编译,基本属于芯片型号是否包含问题,在编译工具中添加即可。

December 2011

Doc ID 15403 Rev 4

1/1317

RM0033

Reference manual

STM32F205xx, STM32F207xx, STM32F215xx and STM32F217xx

advanced ARM-based 32-bit MCUs

Introduction

This reference manual targets application developers. It provides complete information on

how to use the STM32F205xx, STM32F207xx, STM32F215xx and STM32F217xx

microcontroller memory and peripherals. The STM32F205xx, STM32F207xx,

STM32F215xx and STM32F217xx will be referred to as STM32F20x and STM32F21x

throughout the document, unless otherwise specified.

The STM32F20x and STM32F21x constitute a family of microcontrollers with different

memory sizes, packages and peripherals.

For ordering information, mechanical and electrical device characteristics please refer to the

STM32F20x and STM32F21x

datasheets.

For information on programming, erasing and protection of the internal Flash memory

please refer to the

STM32F20x and STM32F21x Flash programming manual.

For information on the ARM Cortex™-M3 core, please refer to the

Cortex™-M3 Technical

Reference Manual

.

Related documents

Available from www.arm.com:

Cortex™-M3 Technical Reference Manual, available from:

http://infocenter.arm.com/help/topic/com.arm.doc.ddi0337g/DDI0337G_cortex_m3_r2p0_trm.pdf

Available from your STMicroelectronics sales office:

STM32F20x and STM32F21x datasheets

STM32F20x and STM32F21x Flash programming manual

Cortex-M3 programming manual (PM0056)


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/bake/11814469.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-18
下一篇2023-05-18

发表评论

登录后才能评论

评论列表(0条)

    保存