Choosing IDE for stm32 and Arduino?

Development environment specific, Arduino, Eclipse, VS2013,Em::Blocks etc
kasperv79
Posts: 10
Joined: Fri Dec 02, 2016 9:26 am

Choosing IDE for stm32 and Arduino?

Postby kasperv79 » Sat Dec 10, 2016 10:26 am

Hi guys.

Maybe you guys can recommend an IDE which is relative easy to install on OSXa d suppord Borg Arduino and stm32.

I'm just tired of the standard Arduino ide :)

Eclipse ?
Micro studio?

User avatar
mrburnette
Posts: 1769
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Choosing IDE for stm32 and Arduino?

Postby mrburnette » Sat Dec 10, 2016 2:53 pm

I'm just tired of the standard Arduino ide :)


There is a better way ... Go off and find what you like and report back to the forum on why your selection works better for you than the stock ArduinoIDE. There is already ample discussion in the forum about alternate IDE's.

Ray

racemaniac
Posts: 327
Joined: Sat Nov 07, 2015 9:09 am

Re: Choosing IDE for stm32 and Arduino?

Postby racemaniac » Sat Dec 10, 2016 4:07 pm

I've now been setting everything up in visual studio with visualgdb, but for a change with the cubemx hal code, and not with one of the arduino frameworks from here.
it was a bit of a pain in the ass to get everything working (at least if you start adding usb serial & things like that, visualgdb misses some files it should include and other small annoyances).

But in the end it does work very nicely. full intellisense, uploading & debugging from stlink without issue (and having a full register map in the gui so you can immeately check all registers to see if everything is configured as expected when you hit a breakpoint :) ).

If the same could be done with the arduino framework, that would be a very nice development environment :).

Paul
Posts: 5
Joined: Tue Oct 25, 2016 2:06 pm

Re: Choosing IDE for stm32 and Arduino?

Postby Paul » Sat Dec 10, 2016 6:40 pm

I'm in a similar situation, but working on Windows. My project now has more than 25 source files and the Arduino GUI is cumbersome. I'd like to use something else. But I have limited fee time and I would rather spend it working on the project than auditioning and modifying development environments.

Any suggestions for something that is simple to set up or that has a good set of instructions?

racemaniac
Posts: 327
Joined: Sat Nov 07, 2015 9:09 am

Re: Choosing IDE for stm32 and Arduino?

Postby racemaniac » Sat Dec 10, 2016 7:35 pm

Paul wrote:Any suggestions for something that is simple to set up or that has a good set of instructions?

If that's your requirement, you're probably stuck with arduino XD.
Anything else won't be so easy to setup, and will probably require a weekend of frustration to get it working XD (but it'll be worth it XD).

User avatar
ahull
Posts: 1404
Joined: Mon Apr 27, 2015 11:04 pm
Location: Sunny Scotland
Contact:

Re: Choosing IDE for stm32 and Arduino?

Postby ahull » Sat Dec 10, 2016 7:43 pm

Ray has a point, IDE is a matter of personal preference. I am comfortable editing files with vi and using make files. This is fine for some things and not others. The changes here -> https://github.com/pingumacpenguin/QtDM ... 60-Version <- for example were built/edited with gedit, and vi and compiled with makefiles etc. I have no idea what environment the original author was using, but the code was well organised and easy to follow. This in my opinion is far more important than what IDE you choose to use.

I also happen to use Eclipse for work (sometimes, but not exclusively). It does the job well, but is far from perfect, and sometimes there too, I'll just fire up vi, or hash together some grep/awk/sed stuff to grab data from some weird formatted source and squeeze it in to something more suitable for what I need. This is my choice (arguably in part because I'm and old fart, and stuck in my ways), and there are no doubt much more snazzy tools, and whizz bang APIs that would do the same thing (if I was prepared to take the time to learn them).

Have a play with the various offerings, and select the one that you feel most comfortable with. You will find that the ability to use Eclipse (and indeed vi) can be useful in a professional capacity. They are popular choices. The Arduino IDE generates quite a few snooty remarks for its look and feel, but to my mind it does its job reasonably well. I can think of far worse tools, and indeed have used, or attempted to use quite a number over the years.

An IDE is a tool, and as such it is useful for some tasks and not others. Eclipse is perhaps more of a complicated Swiss Army knife with a bunch of blades you use all the time, and some, you can only begin to guess the purpose of. The Arduino IDE is more a go to pocket knife. Not good for complex splicing of many files and in depth debugging, but easy to operate, and you wont confuse yourself or cut off a finger with it with it quite so easily. :D

Perhaps the only real advice I can give is play with a bunch of IDEs, but also learn the rudiments of vi - not because it is the best, simply because it is available for pretty much any platform. You might like to have a play with this too - > http://www.scintilla.org/SciTE.html <- not saying it is the best, but it was a long time go to GUI tool at my previous employer.

Come back here and let us know how you got on.
- Andy Hull -

michael_l
Posts: 213
Joined: Mon Aug 24, 2015 6:11 pm

Re: Choosing IDE for stm32 and Arduino?

Postby michael_l » Sat Dec 10, 2016 8:18 pm

I've used platformio to generate IDE project files so I can freely choose my IDE :

http://docs.platformio.org/en/stable/userguide/cmd_init.html

I have to say it does work quite well. If the IDE supports autocomplete it works, etc. I've coded in Qt at some point so I can generate QtCreator project. I've coded with Java so I can generate project for Eclipse .. and so on. And CodeBlocks of course, very fast IDE. You'll have to play a little with the platformio.ini file to get some things right. Then it works quite nicely.

So.. I've used platformio now for a while but I know this sounds funny .. I've not used it for compiling and uploading because that does not seem to work. But only for generating IDE project files. For example in my current project platformio compiled the .bin over 64kB even though Arduino IDE compiles it in 35kB. I use Arduino IDE only for compiling and uploading

Well, I guess it is fair to say compiling works with platformio but it just generates too large .bin files and I have no extra time to debug that further.

I would like to use it also for compiling / uploading because it is somewhat faster that Arduino IDE

ahull: there also seems to be something for VIM users as well:

http://docs.platformio.org/en/stable/id ... mio-plugin
Last edited by michael_l on Sun Dec 11, 2016 8:22 am, edited 1 time in total.

User avatar
ahull
Posts: 1404
Joined: Mon Apr 27, 2015 11:04 pm
Location: Sunny Scotland
Contact:

Re: Choosing IDE for stm32 and Arduino?

Postby ahull » Sat Dec 10, 2016 9:05 pm

michael_l wrote:ahull: there also seems to be something for VIM users as well:

http://docs.platformio.org/en/stable/id ... mio-plugin


Thanks. I might have a play with that when I get some time... now if only someone would write a vim plugin to make more time.... :lol:
- Andy Hull -

Paul
Posts: 5
Joined: Tue Oct 25, 2016 2:06 pm

Re: Choosing IDE for stm32 and Arduino?

Postby Paul » Sat Dec 10, 2016 11:03 pm

I can use vi and vim if I must, and I've been an emacs user since it was written in Midas and ran on Twenex.

The Arduino UI is lacking a few things which seem to matter more as I add files to the project - simple stuff like an easy way to move back and forth between two files and to go to the declaration or definition of a function. Anything Eclipse based, or Atom, or even VS2015 community would be a big improvement. I'd rather not move from the Arduino/Maple libraries right now - I want to get the hardware up and running before I consider such changes.

I'm willing to do a bit of hacking but I would prefer to not spend time on a solution that won't work, such as something that won't build with the external libraries.

Riva
Posts: 29
Joined: Fri May 06, 2016 6:42 am

Re: Choosing IDE for stm32 and Arduino?

Postby Riva » Mon Dec 12, 2016 8:47 am

Paul wrote:I can use vi and vim if I must, and I've been an emacs user since it was written in Midas and ran on Twenex.
The Arduino UI is lacking a few things which seem to matter more as I add files to the project - simple stuff like an easy way to move back and forth between two files and to go to the declaration or definition of a function.

On Windows I almost exclusively use Notepad++ to write code and then launch the Arduino IDE from within it to compile the code and upload. Alas, AFAIK it has not been ported to the Mac but a quick Google shows possible alternatives. I have never used any of them on BSD because I try to avoid the 'low hanging fruit' machines and if I do have to use Apple it's xcode for what I need. There is a potential project here for you to try.


Return to “IDE's”

Who is online

Users browsing this forum: No registered users and 1 guest