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秒。