微控制器编程
我正在和一些工程师一起进行这个机器人手臂项目,我们还没有确定选择的微控制器,但目前正在测试 PIC。我想知道是否有支持 C++ 的 Micros?
背景: 我是一名(Java)软件开发人员,嵌入式系统的初学者,目前使用 Mikro Elektronika IDE 和 C 语言进行编程。
I'm having this robotic arm project along with some engineers we haven't settled for the Micro Controller of choice yet but currently a PIC is being tested. I was wondering if there were Micros that support C++ ?
Background:
I'm a (Java) software developer, beginner in Embedded systems, currently programming using Mikro Elektronika IDE and C language.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
AVR、MSP-430、Blackfin、几乎任何 32 位(ARM、AVR32、Renasis RX 系列)。
如果您从零开始,ARM 可能是最好的选择。 Atmel、NXP、TI 和其他公司都拥有带有廉价开发套件的单芯片 ARM 微控制器。
AVR, MSP-430, Blackfin, almost anything 32 bit (ARM, AVR32, Renasis RX family).
If you are starting from nothing, an ARM is probably the best way to go. Atmel, NXP, TI and others have single chip ARM microcontrollers with inexpensive development kits.
我知道您要求使用 C++,但我刚刚得到了一个运行 C# 的 netduino(语法和概念与 Java 非常相似),我很喜欢它。
整个开发板(在许多方面与现成的 arduino 扩展板兼容)的成本不到 40 美元。
I know you're asking for C++, but I just got a netduino that runs C# (very similar in syntax and concept to Java) and I'm loving it.
The whole dev board (which in many aspects is compatible with readily available arduino shields) costs less than 40 bucks.
我想补充 hexa 的答案,对于 ARM llvm 也是一个很好的编译器(我使用 binutils 来汇编和链接)。
I would add to hexa's answer that for ARM llvm is also a good compiler (I use binutils to assemble and link).
由于多种原因,使用 C++ 进行金属化并不是最佳选择,仅仅是因为您不是在操作系统之上运行,并且举个例子,动态内存分配根本不存在。没有 new 没有 malloc。我并不是说你不能使用 C++,但我会避免这样做。
我使用 Mikroe C 来处理 PIC,这还可以,但我会选择 MPLAB,这只是个人喜好问题。
如果你想使用 ARM,就选择 GCC。
Going metal with C++ is not optimal for a number of reasons, simply because you are not running on top of an operating system and, to name one, dynamic memory allocation simply doesn't exists. No new no malloc. I don't mean you CAN'T go C++, but I would refrain.
I've used Mikroe C for PICs, it's ok but I'd go with MPLAB, just a matter of personal taste.
If you wanna go ARM, go GCC.
为什么不尝试一下 mbed 平台呢?这是一个类似 arduino 的开源板,我认为它更强大。它是用 C/C++ 编程的,好处是您可以在项目中使用数千个 API。
希望这有帮助
https://mbed.org/
Why don't you try the mbed plattform? It's an open source arduino-like board which I consider to be more powerful. It is programmed in C/C++ and the good part is that there are literally thousands of APIs you can use in your project.
Hope this helps
https://mbed.org/