keil中build time elapsed: 00:00:00的解决方法

时间: 2023-06-02 20:05:06 浏览: 544
这个问题属于技术问题,我可以回答。通常build time elapsed为0的原因是因为编译器未能正确识别需要编译的文件或文件路径出错。可以尝试重新指定编译路径或者检查代码中的语法错误,如果问题依旧存在,可以尝试卸载并重新安装keil。
相关问题

Rebuild started: Project: rt1064 *** Target 'nor_sdram_zf_dtcm' uses RTOS support that is part of a Legacy Pack. The Legacy Pack is not installed on your computer - to download the missing Legacy Pack visit: www.keil.com/mdk5/legacy *** Rebuild aborted. Build Time Elapsed: 00:00:01解决方法

这个错误提示是因为你的项目使用了 Keil MDK 的 Legacy Pack 中的 RTOS 支持,但你的电脑上没有安装该 Legacy Pack 所导致的。你可以按照提示中给出的网址 www.keil.com/mdk5/legacy 下载并安装相应的 Legacy Pack,然后重新编译你的项目即可。如果你已经安装了 Legacy Pack,可能是该 Legacy Pack 的路径没有配置正确,你可以在 Keil MDK 的 Options for Target 中找到 Legacy 中的路径配置项,将其设置为正确的路径即可。

*** Using Compiler 'V5.06 update 5 (build 528)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Build target 'Target 1' assembling startup_stm32f10x_md.s... compiling core_cm3.c... compiling user.c... user\user.c(5): warning: #223-D: function "printf" declared implicitly printf("This is a C program.\n"); user\user.c(9): warning: #1-D: last line of file ends without a newline user\user.c: 2 warnings, 0 errors compiling system_stm32f10x.c... linking... Program Size: Code=3508 RO-data=280 RW-data=12 ZI-data=1884 ".\1.axf" - 0 Error(s), 2 Warning(s). Build Time Elapsed: 00:00:00 Batch-Build summary: 1 succeeded, 0 failed, 0 skipped - Time Elapsed: 00:00:00

这段代码是一个编译器Keil V5对一个名为Target 1的目标进行编译的结果报告。编译器在编译过程中,首先对startup_stm32f10x_md.s进行汇编,然后对core_cm3.c、user.c、system_stm32f10x.c进行编译。在编译user.c时,编译器发现该文件中使用了printf函数,但是并没有引入stdio.h头文件,因此产生了一个隐式声明的警告。同时,编译器还发现该文件最后一行没有换行符,也给出了一条警告。最后,编译器对这些文件进行链接,生成了一个名为1.axf的可执行文件,其中Code部分占用3508个字节,RO-data部分占用280个字节,RW-data部分占用12个字节,ZI-data部分占用1884个字节。整个编译过程没有出现任何错误,但是出现了2条警告。整个编译过程耗时为0秒。

相关推荐

*** Using Compiler '', folder: 'E:\Keil_v5\ARM\ARMCLANG\Bin' Build target 'Target 1' compiling core_cm3.c... *** Error: CreateProcess failed, Command: '"E:\Keil_v5\ARM\ARMCLANG\Bin\ArmCC" --via ".\objects\core_cm3.__i"' compiling system_stm32f10x.c... *** Error: CreateProcess failed, Command: '"E:\Keil_v5\ARM\ARMCLANG\Bin\ArmCC" --via ".\objects\system_stm32f10x.__i"' compiling misc.c... *** Error: CreateProcess failed, Command: '"E:\Keil_v5\ARM\ARMCLANG\Bin\ArmCC" --via ".\objects\misc.__i"' compiling stm32f10x_bkp.c... *** Error: CreateProcess failed, Command: '"E:\Keil_v5\ARM\ARMCLANG\Bin\ArmCC" --via ".\objects\stm32f10x_bkp.__i"' compiling stm32f10x_adc.c... *** Error: CreateProcess failed, Command: '"E:\Keil_v5\ARM\ARMCLANG\Bin\ArmCC" --via ".\objects\stm32f10x_adc.__i"' compiling stm32f10x_can.c... *** Error: CreateProcess failed, Command: '"E:\Keil_v5\ARM\ARMCLANG\Bin\ArmCC" --via ".\objects\stm32f10x_can.__i"' compiling stm32f10x_cec.c... *** Error: CreateProcess failed, Command: '"E:\Keil_v5\ARM\ARMCLANG\Bin\ArmCC" --via ".\objects\stm32f10x_cec.__i"' compiling stm32f10x_crc.c... *** Error: CreateProcess failed, Command: '"E:\Keil_v5\ARM\ARMCLANG\Bin\ArmCC" --via ".\objects\stm32f10x_crc.__i"' linking... .\Objects\test.axf: Error: L6967E: Entry point (0x08000000) points to a Thumb instruction but is not a valid Thumb code pointer. Finished: 0 information, 0 warning and 1 error messages. ".\Objects\test.axf" - 1 Error(s), 0 Warning(s). Target not created. Build Time Elapsed: 00:00:00

Build started: Project: template *** Using Compiler 'V6.19', folder: 'D:\Keil_v5\ARM\ARMCLANG\Bin' Build target 'Target 1' ../User/main.c(2): error: 'lora.h' file not found #include "lora.h" ^~~~~~~~ 1 error generated. compiling main.c... LoRa.c(8): error: use of undeclared identifier 'RCU_AF' rcu_periph_clock_enable(RCU_AF); ^ LoRa.c(9): error: call to undeclared function 'gpio_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] gpio_init(LORA_UART_GPIO, GPIO_MODE_AF_PP, GPIO_OSPEED_50MHZ, LORA_UART_GPIO_PIN_TX); ^ LoRa.c(9): error: use of undeclared identifier 'GPIO_MODE_AF_PP' gpio_init(LORA_UART_GPIO, GPIO_MODE_AF_PP, GPIO_OSPEED_50MHZ, LORA_UART_GPIO_PIN_TX); ^ LoRa.c(10): error: use of undeclared identifier 'GPIO_MODE_IN_FLOATING' gpio_init(LORA_UART_GPIO, GPIO_MODE_IN_FLOATING, GPIO_OSPEED_50MHZ, LORA_UART_GPIO_PIN_RX); ^ LoRa.c(23): error: use of undeclared identifier 'GPIO_MODE_IPU' gpio_init(LORA_AUX_GPIO, GPIO_MODE_IPU, GPIO_OSPEED_50MHZ, LORA_AUX_GPIO_PIN); ^ 5 errors generated. compiling LoRa.c... Usart.c(8): error: use of undeclared identifier 'RCU_AF' rcu_periph_clock_enable(RCU_AF); ^ Usart.c(9): error: call to undeclared function 'gpio_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] gpio_init(USART_UART_GPIO, GPIO_MODE_AF_PP, GPIO_OSPEED_50MHZ, USART_UART_GPIO_PIN_TX); ^ Usart.c(9): error: use of undeclared identifier 'GPIO_MODE_AF_PP' gpio_init(USART_UART_GPIO, GPIO_MODE_AF_PP, GPIO_OSPEED_50MHZ, USART_UART_GPIO_PIN_TX); ^ Usart.c(10): error: use of undeclared identifier 'GPIO_MODE_IN_FLOATING' gpio_init(USART_UART_GPIO, GPIO_MODE_IN_FLOATING, GPIO_OSPEED_50MHZ, USART_UART_GPIO_PIN_RX); ^ 4 errors generated. compiling Usart.c... ".\Objects\template.axf" - 10 Error(s), 0 Warning(s). Target not created. Build Time Elapsed: 00:00:01

最新推荐

recommend-type

keil V4中,中文注释代码出现乱码的解决方法

在新版本的KEIL中,总有人反映中文注释会出现乱码.
recommend-type

51单片机中常见问题的解决方法

开发过程中出现了一些问题,一直以为是代码太长,后来才发现是自己的keil软件没有经过破解,所以codesize 一直受到限制。因而我便从网上找了keil v8.02的破解工具,将该软件破解。下面将破解图片献上。​
recommend-type

Keil 中头文件INTRINS.H的作用

在C51单片机编程中,头文件INTRINS.H的函数使用起来,就会让你像在用汇编时一样简便.
recommend-type

Keil中LIB库的作用、生成与调用

下面以自己开发的NOKIA5110液晶的驱动程序演示一下LIB库的生成与调用。
recommend-type

在KEIL中实现C语言嵌套的汇编语言

在单片机学习的过程中,掌握一点汇编语言是非常有必有的,作为低级语言汇编语言在单片机开发中有它不可取代的作用。但是要提高单片机技能,必须掌握C 语言编程,因为C 语言有强大的模块化管理思想。我想在很多人学习...
recommend-type

zigbee-cluster-library-specification

最新的zigbee-cluster-library-specification说明文档。
recommend-type

管理建模和仿真的文件

管理Boualem Benatallah引用此版本:布阿利姆·贝纳塔拉。管理建模和仿真。约瑟夫-傅立叶大学-格勒诺布尔第一大学,1996年。法语。NNT:电话:00345357HAL ID:电话:00345357https://theses.hal.science/tel-003453572008年12月9日提交HAL是一个多学科的开放存取档案馆,用于存放和传播科学研究论文,无论它们是否被公开。论文可以来自法国或国外的教学和研究机构,也可以来自公共或私人研究中心。L’archive ouverte pluridisciplinaire
recommend-type

MATLAB柱状图在信号处理中的应用:可视化信号特征和频谱分析

![matlab画柱状图](https://img-blog.csdnimg.cn/3f32348f1c9c4481a6f5931993732f97.png) # 1. MATLAB柱状图概述** MATLAB柱状图是一种图形化工具,用于可视化数据中不同类别或组的分布情况。它通过绘制垂直条形来表示每个类别或组中的数据值。柱状图在信号处理中广泛用于可视化信号特征和进行频谱分析。 柱状图的优点在于其简单易懂,能够直观地展示数据分布。在信号处理中,柱状图可以帮助工程师识别信号中的模式、趋势和异常情况,从而为信号分析和处理提供有价值的见解。 # 2. 柱状图在信号处理中的应用 柱状图在信号处理
recommend-type

HSV转为RGB的计算公式

HSV (Hue, Saturation, Value) 和 RGB (Red, Green, Blue) 是两种表示颜色的方式。下面是将 HSV 转换为 RGB 的计算公式: 1. 将 HSV 中的 S 和 V 值除以 100,得到范围在 0~1 之间的值。 2. 计算色相 H 在 RGB 中的值。如果 H 的范围在 0~60 或者 300~360 之间,则 R = V,G = (H/60)×V,B = 0。如果 H 的范围在 60~120 之间,则 R = ((120-H)/60)×V,G = V,B = 0。如果 H 的范围在 120~180 之间,则 R = 0,G = V,B =
recommend-type

JSBSim Reference Manual

JSBSim参考手册,其中包含JSBSim简介,JSBSim配置文件xml的编写语法,编程手册以及一些应用实例等。其中有部分内容还没有写完,估计有生之年很难看到完整版了,但是内容还是很有参考价值的。