在搞定了 VSCode + Makefile 玩弄 TivaWare C 库的环境之后,我们很容易想到,是否能以同样的方式玩弄其他单片机库。基本套路是,确保系统环境能够直接通过命令行调用arm-none-eabi-gcc进行编译,然后通过Makefile来组织并完成编译。目标对象:STM32全系列(... ...
分类:
其他好文 时间:
2019-03-02 11:08:42
阅读次数:
165
该问题的出现是链接文件导致的,是不同的gcc交叉编译器支持的链接文件不同造成的,有几种方法可以解决这个问题。 方法一:更换arm-none-eabi-gcc的版本,这个一般是新的gcc编译器才会抱着错误,把gcc交叉编译器版本回退即可。 方法二:直接修改link文件。就是在ld 文件加入 _exit ...
分类:
其他好文 时间:
2019-01-28 13:54:34
阅读次数:
2872
星期日, 09. 九月 2018 07:51下午 beautifulzzzz ![][ bar] 1、安装步骤 1) 从[GNU Arm Embedded Toolchain][ 1]官网下载最新的gcc arm工具链,写文章时下载的是: gcc arm none eabi 5_4 2016q3 2 ...
分类:
系统相关 时间:
2018-09-09 22:10:10
阅读次数:
638
如下图,在编译的时候出现Permission denied。此时u-boot-spl.axf已经编译出来,但是他的反汇编失败了。 失败的原因是生成的u-boot-spl.axf权限不足。 执行chmod 777 u-boot-spl.axf即可,修改makefile,在里面加上或者直接在命令行执行c ...
分类:
其他好文 时间:
2018-08-08 13:44:11
阅读次数:
188
C的源代码中定义一下结构体。 typedef struct { UINT8 RecType; UINT8 NumBytes; UINT32 LoadAddr; UINT8 Data[MaxSRecLen]; } SRecDataRec; 发现,在内存中是按照以下方式排列的: 可见,struct中间可 ...
分类:
移动开发 时间:
2018-07-28 21:50:35
阅读次数:
223
命名规则: 交叉编译工具链的命名规则为:arch [-vendor] [-os] [-(gnu)eabi] arch - 体系架构,如ARM,MIPS verdor - 工具链提供商 os - 目标操作系统 eabi - 嵌入式应用二进制接口 根据对操作系统的支持与否,ARM GCC可分为支持和不支 ...
分类:
其他好文 时间:
2018-07-25 14:32:17
阅读次数:
172
转自:https://www.cnblogs.com/deng-tao/p/6432578.html 博客来之于: http://www.veryarm.com/296.html 交叉编译工具链的命名规则为:arch [-vendor] [-os] [-(gnu)eabi] arch - 体系架构, ...
分类:
其他好文 时间:
2018-07-03 15:12:04
阅读次数:
216
I. probe the stack frame structure The original idea is to unwind the function call stack according to a determined prologue on the begin of a frame. ...
在使用rikirobot机器人做ROS下的导航实验是,粗心大意将底层控制板烧坏,买了个新的电路板重新开始.在编译商家各处的STM32源代码时,Ubunt下总是出现了/arm-none-eabi-gcc/bin/ld:cannot find -lstdc++的错误,这是一个链接错误,使用arm-non ...
分类:
系统相关 时间:
2018-01-12 11:18:48
阅读次数:
1375
1. Downloading toolchain and setup. git clone https://android.googlesource.com/platform/prebuilts/gcc/linux x86/arm/arm eabi 4.7/ 2. Downloading kerne ...
分类:
其他好文 时间:
2017-12-26 14:22:05
阅读次数:
190