Giter Site home page Giter Site logo

Comments (14)

github0null avatar github0null commented on May 10, 2024

如果在编译前 Keil 的路径是无效的话,会发生此类错误,应该重新设置新的有效的 Keil 路径


出现此错误,应该是你在命令行界面使用 ⇡ 键回到了上次的命令,并回车进行了编译; 正确的方法是点击编译按钮,这样在编译前插件会进行目录有效性的检测,从而阻止错误编译的发生,会给出警告提示


下图是类似的错误


image

from eide.

linlinlgh avatar linlinlgh commented on May 10, 2024

我在上面设置keil路径后选择的keil安装目录下的TOOLS.INI,是这样吗?

from eide.

github0null avatar github0null commented on May 10, 2024

是的,如果设置错了会提示找不到编译工具

from eide.

linlinlgh avatar linlinlgh commented on May 10, 2024

导入keil工程设置好后,还是会出现
Windows PowerShell
版权所有 (C) Microsoft Corporation。保留所有权利。

尝试新的跨平台 PowerShell https://aka.ms/pscore6

PS E:\test\USER\Target 1> & 'c:\Users\Administrator.vscode\extensions\cl.eide-1.0.4\bin\ARM\ARM_Builder.exe' -b 'c:\Keil' 'e:\test\USER\Target 1.\out\Target 1.params'l.eide-1.0.4\bin\ARM\ARM_Builder.exe' -b 'c:\Keil' 'e:\test\USER\Target
1.\out\Target 1.params'

ERROR 参数错误 : Invalid bin dir !, [path] : c:\Keil

from eide.

github0null avatar github0null commented on May 10, 2024

这就奇怪了,只有在目录不存在的时候才会有这个错误,也许是在C盘下,命令行的权限不够把,原因目前还不清楚

from eide.

linlinlgh avatar linlinlgh commented on May 10, 2024

好吧

from eide.

lmhtz avatar lmhtz commented on May 10, 2024

keil 版本是否有要求? 无法设立C:\Keil_v5\TOOLS.INI路径,版本5+

from eide.

lmhtz avatar lmhtz commented on May 10, 2024

keil 版本是否有要求? 无法设立C:\Keil_v5\TOOLS.INI路径,版本5+

from eide.

github0null avatar github0null commented on May 10, 2024

并没有版本要求,设置目录只是为了找到编译工具路径

from eide.

magicsjw avatar magicsjw commented on May 10, 2024

我也遇到同样问题,在windows 7 x64 操作系统上,
image
在vscode里选择PowerShell时,报ERROR : Invalid bin dir !, [path] : ...
在vscode里选择PowerShell Core时,报这个错误截图:
image

PowerShell Core版本:6.0.2

from eide.

github0null avatar github0null commented on May 10, 2024

你好,如果 keil 安装在C盘下就会这样,因为构建工具权限不够,这是没法避免的

如果安装目录没问题,那就是编译工具路径没选对,

而且应该使用Powershell 而不是Powershell core

from eide.

magicsjw avatar magicsjw commented on May 10, 2024

你好,如果 keil 安装在C盘下就会这样,因为构建工具权限不够,这是没法避免的

如果安装目录没问题,那就是编译工具路径没选对,

而且应该使用Powershell 而不是Powershell core

我的keil安装路径不是C盘,路径应该没问题,设置路径那里我把C51和ARM都选了D:\Keil\tools.ini
image

from eide.

github0null avatar github0null commented on May 10, 2024

ARM 的 tools.ini 路径 和 C51 的 是不同的,

ARM:ARM 可执行文件 “UV4.exe” 的上一层目录里的 Tools.ini
C51:C51 可执行文件 ”UV4.exe“ 的上一层目录里的 Tools.ini

这个问题下一个版本会解决的

from eide.

linlinlgh avatar linlinlgh commented on May 10, 2024

最近忙其他去了,今天看了下,编译成功了,需要注意几个问题:1、导入c51工程是.uvproj,也就是要用Keil uVision4,导入arm工程是.uvprojx,也就是Keil uVision5的版本,2、选择设置keil的路径要区分是C51还是ARM的Tools.ini,3、keil软件一定不能安装在C盘,然后试了试代码提示,确实强大

from eide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.