求助:platformio提示无法使用 sdcc.exe解析配置
vscode吧
全部回复
仅看楼主
level 2
uszf321 楼主
新手一枚,尝试使用VSCODE的platformio及SDCC编写stc89c52rc单片机程序,新建工程后,一会儿就出现"无法使用 compilerPath“C:/Users/Dabaitunaitang/.platformio/packages/toolchain-sdcc/bin/sdcc.exe”解析配置。 请改用“cl.exe”的提示,重装过SDCC也无效,sdcc文件路径没有问题,可能是因为sdcc不正常,导致提示__sfr等关键字未定义,求大神帮解决一下,不要告诉我换用D版的keil,我学习vscode的目的就是为不再使用D版.
2021年03月28日 04点03分 1
level 2
uszf321 楼主
求走过路过的大神帮忙指点一下
2021年03月28日 13点03分 2
level 1
VSCode does not support SDCC as a compiler and falls back to GCC. The IntelliSense you’ll be getting will be there, but sometimes wrong (and it will also not find SDCC specific header files).
With the first one also containing instructions on how to add at least some SDCC include paths to configuration.
在platofrmio.ini中加入下面一行
build_flags = -I $PROJECT_PACKAGES_DIR/toolchain-sdcc/include
2021年07月02日 13点07分 3
谢谢,我试试
2021年07月27日 07点07分
level 1
兄弟你解决了么,我的问题一样,但是插入biuld flags之后不管用
2021年08月01日 04点08分 4
解决了吗
2021年12月11日 03点12分
我也是我也是
2022年03月28日 03点03分
解决了吗
2022年05月10日 03点05分
解决了吗?
2022年07月25日 05点07分
level 1
你的问题解决了吗,我现在和你的问题一摸一样,也是会提示__sfr未定义
2023年01月02日 10点01分 6
因为工作调动,很久没研究了,最近几天研究了一下,费了不少劲,研究出来的结果是不用管都没问题,好像是在加载C/C++通用编译器的时候报的错,点清除后直接编写单片机代码,编译的时候选platformio,没有任何问题
2023年06月23日 10点06分
1