我现在需要购买 IAR、Code Composer 4 或其他东西来进行 MSP430 开发

发布于 2024-08-31 18:42:57 字数 78 浏览 3 评论 0原文

到目前为止我一直在使用IAR,但它有时会崩溃并且没有代码补全功能。 另外,我使用的其他开发环境都是基于 eclipse 的。 我应该买哪一款?

I have been using IAR so far, but it crashes sometimes and doesn't have code completion.
Also, the other dev environments I use are eclipse based.
Which one should I buy?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

与酒说心事 2024-09-07 18:42:57

Code Composer Studio 的当前版本是基于 Eclipse 的,因此这可能是一个选项。

如果您现有的 IAR 编译器适合您,并且您感兴趣的只是 IDE 稳定性和代码完成,那么您可以考虑使用普通 Eclipse/CDT,甚至使用“makefile 项目”的免费 Visual C++ Express 版本,并且只需直接或通过 makefile 调用 IAR 命令行工具即可避免使用 IDE。

根据我的经验,使用 VC++ 效果很好,但需要一些初始设置。您有多种设置选择;您可以创建一个 makefile 来与 Microsoft 的 nmake 实用程序一起使用(与 GNU make 类似但不完全相同),您可以使用 GNU make 和传统的 makefile,您可以完全使用不同的构建管理器,或者您可以使用 IAR 的命令行构建实用程序 (iarbuild.exe)。最后一个选项可能是最简单的,如果其他团队成员想要继续使用 IAR IDE,则效果很好。您使用 IAR 的 IDE 来维护项目(添加文件、删除文件、更改编译器/链接器选项等),但使用 Visual Studio 来日常编辑和构建项目。为了使代码完成和浏览正常工作,您需要将所有源代码添加到 VC++ 项目中(这通常是乏味的部分,因为 VC++ 的“添加文件”不会递归子目录),并添加项目的所有包含搜索路径(包括编译器的搜索路径)。默认路径)到 VC++ 项目的包含路径。您还需要将项目的任何命令行或编译器预定义宏添加到宏列表中;这使得它能够准确地解析条件编译的部分和“灰显”禁用的代码部分。包含和宏列表通常可以复制和复制。直接从 IAR IDE 项目设置粘贴。

VC++ Express 的一个问题是它没有提供一种灵活的方式来自定义调试器调用,并且会尝试使用 VC++ 调试器而不是 C-Spy。不过,您可以通过“工具”菜单的自定义菜单项启动 C-Spy。上面的链接介绍了如何从命令行启动 C-Spy。另一种选择是将构建命令放入批处理文件中,并在成功编译时启动调试器;然后使用批处理文件作为自定义构建命令,而不是直接使用 iarbuild.exe;但如果您只想构建代码而不执行,这可能会很烦人。使用批处理文件是添加您不想添加到 IAR 项目本身的预/后构建步骤的简单方法。

我经常使用 VC++ Express IDE 来处理使用 Code Composer Studio、Keil uVision、Microchip 的 MPLAB(使用其各种命令行项目构建工具)创建的项目以及普通的 GNU make 托管项目。尽管它在某些方面有一些怪癖和不灵活性,但作为一个(免费)代码编辑器,它非常出色,并且比相对原始的编译器供应商的 IDE 更容易进行长时间的编码会话。有时(尤其是调试时)我最终会在 VC++ Express 和编译器供应商 IDE 之间切换,但在大多数情况下,每个编辑器中的自动文件更改检测可以很好地处理这一问题;通过在两个编辑器中进行未保存的更改然后保存一个版本,我很少丢失编辑内容。

The current version of Code Composer Studio is Eclipse based, so that may be an option.

If your existing IAR compiler is working for you and it is just the IDE stability and code completion that you are interested in, then you might consider using plain Eclipse/CDT or even the free Visual C++ Express Edition using a "makefile project", and simply invoke the IAR command line tools directly or via a makefile to avoid the IDE.

Using VC++ works well in my experience, but takes some initial setting up. You have a number of choices for setting this up; you could create a makefile to work with Microsoft's nmake utility (similar but not identical to GNU make), you could use GNU make and a traditional makefile, you could use a different build manager altogether, or you could use IAR's command line build utility (iarbuild.exe). This last option is perhaps the simplest, and works well if other team members want to continue using the IAR IDE. You use IAR's IDE to maintain the project (add files, remove files, change compiler/linker options etc.), but use Visual Studio for editing and building your project day-to-day. For code completion and browsing to work, you need to add all your sources to the VC++ project (often the tedious part because VC++'s "add files" will not recurse subdirectories), and add all the include search paths for the project (including the compiler's default paths) to the VC++ project's include paths. You also need to add any command line or compiler predefined macros for the project to the macros list; this allows it to parse conditionally compiled sections accurately and 'grey-out' disabled code sections. The include and macro lists can usually be copy & pasted directly from the IAR IDE project settings.

One problem with VC++ Express is that it does not provide a flexible way to customise the debugger invocation, and will try and use the VC++ debugger rather than C-Spy. However you can a custom menu item to the "Tools" menu launch C-Spy. Launching C-Spy from the command line is dealt with in the link above. Another option is to place the build commands into a batch file and launch the debugger on successful compilation; then use the batch file as the custom build command rather than iarbuild.exe directly; but this can get annoying if you just wanted to build the code without execution. Using a batch file is a simple way to add pre/post build steps that you do not want to add to the IAR project itself.

I use the VC++ Express IDE regularly for projects created using Code Composer Studio, Keil uVision, Microchip's MPLAB, (using their various command line project build tools), and and plain GNU make managed projects. Despite its quirks and inflexibility in some areas, as a (free) code editor it is excellent and makes long coding sessions much easier than the relatively primitive compiler vendor's IDE's. Sometimes (especially when debugging) I end up flipping between VC++ Express and the compiler vendor IDE, but in most cases this is handled well by automatic file change detection in each editor; and I have only seldom lost edits by making unsaved changes in both editors then saving one version.

最偏执的依靠 2024-09-07 18:42:57

我在 MSP430 上广泛使用 CrossWorks,并且比 IAR 更喜欢它。该 IDE 具有许多成熟的 IDE 功能,包括代码完成、源代码浏览器、与版本控制的连接、广泛的调试选项等。我也非常喜欢 CrossWorks 使用 JTAG 处理连接到目标的方式,让您无需连接即可连接。下载新的软件映像,这样您就可以重置目标等。最重要的是,就内存负载和加载时间而言,CrossWorks 似乎是比 IAR 更“轻”的软件包。

不管怎样,你应该自己尝试一下,只需从他们的网站下载 IDE 并从他们那里获得 30 天的试用许可证(如果这还不够,他们会再续订 30 天)。

MSP430 通用 CrossWorks 网页:http://rowley.co.uk/msp430/index.htm< /a>
CrossWorks for MSP430 版本 2.0 文档:
http://www.rowleydownload.co.uk /documentation/msp430_2_0/index.htm

I have worked quite extensively with CrossWorks for MSP430 and I liked it a lot better than IAR. The IDE has a lot of mature IDE features, including code completion, source code browser, connection to version control, extensive debug options, etc. I also really liked the way CrossWorks handled connecting to the target using JTAG, allowing you to just connect without downloading a new software image so you can just reset the target etc. On top of that it seemed that CrossWorks was a 'lighter' software package than IAR in terms of memory load and loading time.

Anyway, you should try it yourself by just downloading the IDE from their website and getting a 30-day trial license from them (if that's not enough they will renew it for another 30 days).

General CrossWorks for MSP430 webpage: http://rowley.co.uk/msp430/index.htm
CrossWorks for MSP430 version 2.0 documentation: http://www.rowleydownload.co.uk/documentation/msp430_2_0/index.htm

我很OK 2024-09-07 18:42:57

对于我的钱(或者更确切地说是我雇主的钱)来说,这取决于 IAR 和 Crossworks 之间的选择。我还没有听说过有关 TI 产品的好评如潮(通常是相反的)。我使用 IAR 并使用过 Rowley 产品的早期预发布(Beta)版本。

我同意 IAR 编辑器并不是世界一流的。我使用我自己最喜欢的编辑器来完成我想要的所有代码完成和模板扩展。当我打开文件时,可以使 IAR Embedded Workbench 优先打开我的编辑器而不是它们自己的编辑器。代码生成和对新设备的支持非常出色。我是 F5X 系列的早期采用者,当时 IAR 是唯一可以为该系列处理器进行编译的工具集。 IAR 还定期更新他们的工具,使用在其工具的所有变体之间推出的新功能。

如果您使用 FreeRTOS,那么 IAR 工具有一个免费插件,可以显示任务状态和内存使用情况。

对 IAR 和 Crossworks 产品的支持非常出色。产品开发工程师活跃于 Yahoo MSP430 新闻组,我发现两者都非常活跃回应用户提出的问题。

For my money (or rather my employer's) it comes down to a choice between IAR and Crossworks. I have not heard rave reviews about the TI offering (often the opposite). I use IAR and have used the early pre-release (Beta) versions of the Rowley products.

I would agree that the IAR editor is not world beating. I use my own favourite editor that does all of the code completion and template expansion that I could wish for. It is possible to make the IAR Embedded Workbench open my editor in preference to their own when I open a file. The code generation and support for new devices has been excellent. I was an early adopter of the F5X series and at the time IAR was the only toolset that could compile for this family of processors. IAR have also been updating their tools regularly with new features that are being rolled out between all of the variants of their tools.

If you use FreeRTOS then there is a free plugin for the IAR tools that displays the task states and memory usage.

Support for the IAR and Crossworks products is excellent. The product development engineers are active in the Yahoo MSP430 newsgroup and I have found both to be very responsive to questions posed by users.

心是晴朗的。 2024-09-07 18:42:57

当我使用 MSP430 时,我发现最适合它的 IDE 是 CodeComposer。另外,由于它是基于 Eclipse 的,所以我发现它非常易于使用,并且熟悉,我记得没有太多崩溃。考虑到像 IAR 这样的东西,价格也更便宜。

我在 STM32 上使用 IAR 效果很好,我发现了一些奇怪的问题。虽然有很多崩溃。我会选择 CodeComposer

When I was using the MSP430 I found that the best IDE for it was CodeComposer. Also since it is eclipse based I find it very easy to use and familiar not many crashes at all that I remember. also the price is cheaper when considering something like IAR.

I am using IAR for the STM32 works great I found some weird issues about it. lots of crashes though. I would go with CodeComposer

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文