startup_stm32f10x_hd.S:1: Error: junk at end of line, first unrecognized character is `*‘
stm32的makefile编译时发生错误:
startup_stm32f10x_hd.S: Assembler messages:
startup_stm32f10x_hd.S:1: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:2: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:3: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:4: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:5: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:6: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:7: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:8: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:9: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:10: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:11: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:12: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:13: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:14: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:15: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:16: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:17: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:18: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:19: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:20: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:21: Error: bad instruction `the PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS'
startup_stm32f10x_hd.S:22: Error: bad instruction `with CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.'
startup_stm32f10x_hd.S:23: Error: bad instruction `as A RESULT,STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,'
startup_stm32f10x_hd.S:24: Error: bad instruction `indirect OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE'
startup_stm32f10x_hd.S:25: Error: bad instruction `content OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING'
startup_stm32f10x_hd.S:26: Error: bad instruction `information CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.'
startup_stm32f10x_hd.S:27: Error: junk at end of line, first unrecognized character is `*'
startup_stm32f10x_hd.S:29: Error: bad instruction `amount of memory(in bytes)allocated for Stack'
startup_stm32f10x_hd.S:30: Error: bad instruction `tailor this value to your application needs'
原因是所用startup_stm32f10x_hd.S是专门用与keil上的,不能用于gcc,需要另外寻找适用于gcc版本的启动文件,我是在stm32cubeide项目中找的启动文件,但还有问题:
/home/ztd/Desktop/share/test/linux/tools/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: cannot open linker script file stm32_flash.ld: No such file or directory
缺少stm32_flash.ld文件:将stm32cubeide项目中的STM32F103ZETX_FLASH.ld文件复制到自己的项目下并改名为stm32_flash.ld
还有问题:
/home/ztd/Desktop/share/test/stm32/test/startup_stm32f103zetx.s:98: undefined reference to `SystemInit'
collect2: error: ld returned 1 exit status
.s文件中找不到SystemInit:项目中缺少system_stm32f10x.c,system_stm32f10x.h,加入就好了
startup_stm32f10x_hd.S:1: Error: junk at end of line, first unrecognized character is `*‘相关推荐
- hello.s:15: 错误: junk at end of line, first unrecognized character valued 0x8 的解决方法
gcc编译报错如下: hello.s: 警告: 文件结束,非行尾:插入新行 hello.s:1: 错误: junk at end of line, first unrecognized charact ...
- ParserError: Error tokenizing data. C error: Expected 1 fields in line 122, saw 2
数据分析和挖掘实战第15章的一段读取.txt文件报错 import pandas as pdinputfile = 'data/meidi_jd.txt' outputfile = 'data/mei ...
- 使用友元,编译出错fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) 的解决...
版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明 http://lihuan-dianxian.blogbus.com/logs/42102230.html 同学拿了个很简单的小程序过 ...
- fatal error C1001: INTERNAL COMPILER ERROR(compiler file 'msc1.cpp', line 1786)解决方法
有时会碰到奇怪的编译错误 fatal error C1001: INTERNAL COMPILER ERROR(compiler file 'msc1.cpp', line 1786) 致命错误C10 ...
- 项目启动报错 Error running ‘xxxApplication‘;Command line is too long,Shoerten command line for........
springboot启动项目报错 启动项目的时候,一直启动不了,报启动类名字太长.如下图所示 Error running'XxxApplication': Command line i stoo lo ...
- 2022.11.15【bug笔记】|Error in FASTQ file at line 55: Line expected to start with ‘+‘, but found ‘G‘
今天协助销售处理客户一个分析问题,感觉很多人都会遇到,在这里记录一下. 项目场景: 从测序公司下载测序原始数据,使用Trim galore进行质控分析. 问题描述 执行脚本 trim-galore - ...
- 解决:pandas.errors.ParserError: Error tokenizing data. C error: Expected 2 fields in line 18, saw 4
解决Python进行pd.read_csv出现:pandas.errors.ParserError: Error tokenizing data. C error: Expected 2 fields ...
- ISE verilog 综合错误提示:ERROR:Xst:880 - Johnson_source.v line 45: Cannot mix blocking and non blocking
背景:Xilinx公司的FPGA ,ISE 13.4 开发环境, verilog HDL语言 问题描述:检查语法没有错误,但综合时出错,错误如下: ERROR:Xst:880 - "Jo ...
- 成功解决pandas.errors.ParserError: Error tokenizing data. C error: Expected 1 fields in line 4, saw 2
问题描述: Traceback (most recent call last):File "C:/Users/Lenovo/Desktop/水泥数据/dataprocess1.py" ...
最新文章
- java弹出微信扫一扫_JAVA实现调用微信js-sdk扫一扫
- CANOE入门(一)
- 单片机上使用TEA加密通信(转)
- Go的结构体对接受者函数的传递
- ARP攻击实战之WinArpAttacker
- Centos7 WARNING: ‘aclocal-1.15‘ is missing on your system.
- 转:模态对话框的支持 (IE,Firefox,Chrome)
- linux redis客户端_10个 Linux 顶级开源缓存工具
- 未能加载文件或程序集_完美解决未能正确加载Visual C++资源编辑器包问题
- 在微信小程序中绘制图表(part3)
- oom机制分析及对应优化策略
- mysql中首字母大写的函数,如何借助MySQL函数将字符串的首字母大写?
- 小米研发类Kindle电子阅读器
- 视频会议服务器维护,视频会议系统一般故障与应对措施
- 中国联通沃商-上海大学生手机应用创意、开发大赛活动
- 智能家居出货量将达5.4亿台,全屋智能线下渠道是推广主力
- ThinkPad_E570 拆机清灰换硅脂
- LeetCode55跳跃游戏//力扣55跳跃游戏(贪心)
- 2021年科学突破奖:生命科学、基础物理学和数学奖得主揭晓
- 霍尔开关在智能阀门位移器上的应用
热门文章
- 华理c语言设计网上作业,华理网上作业 之 大学英语预备
- 【亲测已解决】CentOS7 ifconfig commend not fount(命令找不到)
- 华为路由器负载均衡_华为路由器配置利用NAT实现TCP负载均衡
- 【pytorch】model.train()和model.evel()的用法
- 洛谷3238 HNOI2014 道路阻塞 最短路 线段树(无代码)
- 机器学习常用算法的优缺点总结
- Telegraf 简单使用介绍
- 简单的电商分销管理系统介绍
- 荒诞 (absurdity)
- 数据库原理题型 - 综合应用题