OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 2766|回复: 3

创建工程,求大神忙!!!

[复制链接]

4

主题

7

帖子

0

精华

新手上路

积分
26
金钱
26
注册时间
2020-4-9
在线时间
3 小时
发表于 2020-4-9 15:12:26 | 显示全部楼层 |阅读模式
1金钱
Build target 'tem'
compiling system_stm32f10x.c...
compiling stm32f10x_it.c...
compiling main.c...
main.c(28): warning:  #1-D: last line of file ends without a newline
  } }
main.c: 1 warning, 0 errors
compiling core_cm3.c...
assembling startup_stm32f10x_hd.s...
compiling misc.c...
compiling stm32f10x_adc.c...
compiling stm32f10x_bkp.c...
compiling stm32f10x_can.c...
compiling stm32f10x_cec.c...
compiling stm32f10x_crc.c...
compiling stm32f10x_dac.c...
compiling stm32f10x_dbgmcu.c...
compiling stm32f10x_dma.c...
compiling stm32f10x_exti.c...
compiling stm32f10x_flash.c...
compiling stm32f10x_fsmc.c...
compiling stm32f10x_gpio.c...
compiling stm32f10x_i2c.c...
compiling stm32f10x_iwdg.c...
compiling stm32f10x_pwr.c...
compiling stm32f10x_rcc.c...
compiling stm32f10x_rtc.c...
compiling stm32f10x_sdio.c...
compiling stm32f10x_spi.c...
compiling stm32f10x_tim.c...
compiling stm32f10x_usart.c...
compiling stm32f10x_wwdg.c...
compiling delay.c...
compiling sys.c...
compiling usart.c...
linking...
Program Size: Code=1280 RO-data=336 RW-data=8 ZI-data=1832  
FromELF: creating hex file...
"..\tem.axf" - 0 Error(s), 1 Warning(s).
Build Time Elapsed:  00:00:12
————————————————————————————————————————————————
上面是错误编译提示
hex文件不在OBJ文件在OBJ外层得文件是怎么回事

最佳答案

查看完整内容[请看2#楼]

你这不是编译成功了?只是一个告警:要求在main.c文件最末尾加一个新行而已。
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

15

主题

317

帖子

0

精华

高级会员

Rank: 4

积分
859
金钱
859
注册时间
2015-2-12
在线时间
353 小时
发表于 2020-4-9 15:12:27 | 显示全部楼层
你这不是编译成功了?只是一个告警:要求在main.c文件最末尾加一个新行而已。
回复

使用道具 举报

21

主题

2205

帖子

0

精华

资深版主

Rank: 8Rank: 8

积分
5140
金钱
5140
注册时间
2014-8-26
在线时间
1317 小时
发表于 2020-4-9 16:24:33 | 显示全部楼层
目标文件要保存到其他的文件夹  需要在mdk里面设置的
Options The Target --> Output --> Select Folder for Objects
回复

使用道具 举报

3

主题

808

帖子

0

精华

论坛元老

Rank: 8Rank: 8

积分
3879
金钱
3879
注册时间
2017-3-7
在线时间
1692 小时
发表于 2020-4-9 16:24:37 | 显示全部楼层
编译没问题,生成的hex文件位置可以通过keil设置
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-5-25 05:06

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表