新手入门
- 积分
- 4
- 金钱
- 4
- 注册时间
- 2016-7-11
- 在线时间
- 11 小时
|
5金钱
图为编译结果
Rebuild target 'Target 1'
assembling startup_stm32f10x_hd.s...
compiling delay.c...
compiling sys.c...
"no source": Error: command-line: #564: cannot open embedded assembler output file "C:\Users\战神\AppData\Local\Temp\p15a0-2": No such file or directory
..\SYSTEM\sys\sys.c: 0 warnings, 1 error
compiling usart.c...
linking...
..\OBJ\test.axf: error: L6002U: Could not open file ..\obj\sys.o: No such file or directory
Finished: 0 information, 0 warning, 0 error and 1 fatal error messages.
"..\OBJ\test.axf" - 1 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:02
说找不到test.axf文件,但我发现从这里下载的例程里面没有.axf文件,我该怎么办
这是代码
#include "sys.h"
#include "usart.h"
#include "delay.h"
#include "led.h"
//ALIENTEK Mini STM32开发板范例代码1
//跑马灯实验
//技术支持:www.openedv.com
//广州市星翼电子科技有限公司
int main(void)
{
Stm32_Clock_Init(9); //系统时钟设置
delay_init(72); //延时初始化
LED_Init(); //初始化与LED连接的硬件接口
while(1)
{
LED0=0;
LED1=1;
delay_ms(300);
LED0=1;
LED1=0;
delay_ms(300);
}
}
|
|