修正 gcc_arm 版本。
Signed-off-by: rick.chan <cy@haoan119.com>
This commit is contained in:
parent
e1cc07217e
commit
b619781594
@ -68,7 +68,7 @@ EDID 也支持使用 AC5、AC6、IAR 等编译器,以及 STLink、pyOCD 等下
|
||||
|
||||

|
||||
|
||||
***注:使用“Setup Utility Tools”安装的 GCC 包在使用时会造成 FreeRTOS 堆栈大很多(TCB 中的 struct _reent xNewLib_reent 结构有问题,runtime 的问题),解决办法是使用 STM32Cube IDE 中的 GCC 进行替换([点此下载](./img/VSCode_ARM_CortexM_开发/gcc_arm.zip))。***
|
||||
***注:使用“Setup Utility Tools”安装的 GCC 包在使用时会造成 FreeRTOS 堆栈大很多(TCB 中的 struct _reent xNewLib_reent 结构有问题,runtime 的问题),解决办法是使用 ARM 官网提供的 GCC 进行替换([点此下载](./img/VSCode_ARM_CortexM_开发/gcc_arm.zip))。***
|
||||
|
||||
### 1.2. 项目配置
|
||||
|
||||
@ -434,9 +434,11 @@ d:/gcc-arm-none-eabi-4_9/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none
|
||||
readr.c:(.text._read_r+0x10): undefined reference to `_read'
|
||||
```
|
||||
|
||||
在 Builder Configurations -> Builder Options 中进行修改。
|
||||
如果此问题出现在 gcc-arm-none-eabi 13.0 及以上版本,可以先尝试替换到 ARM 官网提供的 10.3 版本,下载链接参考 [1.1. 安装工具链](#11-安装工具链) 中下载。
|
||||
|
||||
选择 Global Options 或 Linker,添加或删除 “--specs=nosys.spece”(文章:[ARM GCC 链接错误 引用未定义函数 _read _write _sbrk 解决和重定向](https://blog.csdn.net/daxiebao/article/details/52653657) 中说要添加该参数,但我实际项目中已经添加了该参数仍然报出了这个警告,删除后警告消失)。
|
||||
如果是其他版本上的问题,可尝试在 Builder Configurations -> Builder Options 中修改编译链接参数。
|
||||
|
||||
选择 Global Options 或 Linker,添加或删除 “--specs=nosys.specs”(文章:[ARM GCC 链接错误 引用未定义函数 _read _write _sbrk 解决和重定向](https://blog.csdn.net/daxiebao/article/details/52653657) 中说要添加该参数,但我实际项目中已经添加了该参数仍然报出了这个警告,删除后警告消失)。
|
||||
|
||||
## 5. 外部参考资料
|
||||
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user