STM32 Boards - Page 1
Forum section: electronics / general

author: Fantasma25
author_rank: Regular Contributor
timestamp: May 15, 2015, 03:29:32 pm
content: Hello, I'm looking for a more powerful alternative for the Arduino UNO and I stumbled upon the STM32 Boards (more especifically, this onehttp://www.aliexpress.com/item/leaflabs-Leaf-maple-mini-ARM-STM32-compatibility/32214664071.html)I found out that they can be programmed with the Arduino IDE. Has anybody had any experience with it? Any thoughts or recommendations? Thank you!!

author: Muxr
author_rank: Super Contributor
timestamp: May 15, 2015, 07:05:55 pm
content: few weeks back I had a similar question, there are a lot of good answers provided by the community, you can checkout the thread:https://www.eevblog.com/forum/microcontrollers/stm32f103-any-good/I've received the boards but I haven't had a chance to play with them yet, working on finishing an 8266 project I've been working on.

author: Brutte
author_rank: Frequent Contributor
timestamp: May 15, 2015, 07:29:03 pm
content: Why cannot you buy a proper Discovery or Nucleo?

author: Fantasma25
author_rank: Regular Contributor
timestamp: May 15, 2015, 07:33:53 pm
content: Quote from: Brutte on May 15, 2015, 07:29:03 pmBecause I want to integrate it into a project and I really like the smaller breadbordable form factor :p Also they are REALLY cheap XDQuote from: Muxr on May 15, 2015, 07:05:55 pmThanks! I'll check it out

author: langwadt
author_rank: Super Contributor
timestamp: May 15, 2015, 11:37:38 pm
content: Quote from: Fantasma25 on May 15, 2015, 07:33:53 pmDiscovery or Nucleo is something like $9 and they include a proper debugger

author: savril
author_rank: Regular Contributor
timestamp: May 16, 2015, 01:18:26 am
content: Quote from: langwadt on May 15, 2015, 11:37:38 pmYes they integrate the ST Link V2.1 (sold in V2.0 as standalone programmer/debugger), so they are fully compatible with STM compatible tools. As you said, the biggest advantage is the debugger.You can't use Arduino IDE but that's the occasion to go to a real IDE like Eclipse which will give you all the options (verification as you type your code, auto suggestion, debugger, ...). Having an official programmer/debugger is also an advantage: you don't have to make twisted configurations to get it work, you have all the functionalities pros have with the same level of quality and you don't ask yourself if your debugger really work.For the price, the Nucleo F4 is a great value.Nucleo are pin compatible with arduino Uno shield (although I think you need the compatible libs of course). The discovery F0 seem to be breadboard compatible but more powerful versions are not I think.The maple is a project initiated at MIT in which they have ported the arduino IDE to the STM32 chip. However, I think you will be limited to the Maple compatible boards (there are like 2). With the Nucleo or Discovery, you have access to all the range of STM32. You won't be able to run your arduino code as is.Me too, I was willing to start on STM32 some weeks ago. Finally I settled for the Nucleo for the above reasons. I've go a nucleo F4 waiting for me but I haven't had time for now to play with it but that will be surely my platform for my next project.Setting up a complete dev env is more difficult than just installing Arduino IDE but that's more rewarding to have a real IDE with all the functions as a pro env. May be I'm a little biased because I come from the IT software dev and so I spent much time developing.

author: westfw
author_rank: Super Contributor
timestamp: May 16, 2015, 09:29:55 am
content: QuoteThe wonder of Arduino is that while you're "not having time" to get a "real" development environment set up and running, people using arduino have started and finished full projects :-) (alas, Arduino is getting more complicated as well. But I still remember the TI Launchpad instructions, where "take the launchpad out of its box" was step 25!)Maple was initiated (and abandoned) by former MIT students, which isn't quite the same as "originated at MIT."The company (http://leaf-labs.squarespace.com/about-maple/) has mostly moved on to other things, but left their code and designs around (in the best spirit of OS, IMO) Maple Mini clones are available very cheaply from China, and other people (http://www.stm32duino.com/) have (recently) picked up SW support (making use of the 3rd-party board support that didn't exist when leaf-labs started.) I think they're also targeting some of the Discovery and/or Nucleo Boards.

author: langwadt
author_rank: Super Contributor
timestamp: May 16, 2015, 04:27:16 pm
content: Quote from: westfw on May 16, 2015, 09:29:55 amGettting eclipse configured can be a bit of an uphill battle if you haven't tried it before, but something like CooCox CoIDE(also based on eclipse) just works out of the box

author: Muxr
author_rank: Super Contributor
timestamp: May 16, 2015, 04:46:44 pm
content: One of the main reasons I like Arduino IDE, is because it's cross platform since OS X is what I use. Great ecosystem with tons of examples and tutorials out there is another reason Arduino is great.It's really quite nice actually, I mean you get quick prototyping without feeling restricted when you need to break out of the mold and do some inline assembly or whatnot.Haven't had a chance to do any work with the STM32 Arduino yet, but I've been using Arduino ESP8266 with great results.

author: westfw
author_rank: Super Contributor
timestamp: May 16, 2015, 11:10:26 pm
content: QuoteSure. After you download the gcc compiler from ARM, and the IDE from CooCox, and (perhaps) painfully extract the vendor libraries and/or .h files from some huge package that they want you to install... Piece of cake!

author: zapta
author_rank: Super Contributor
timestamp: May 16, 2015, 11:50:33 pm
content: Quote from: Muxr on May 16, 2015, 04:46:44 pmSame here. The esp8266 is one of the best arduino mcu's and is dirt cheap.If you are looking for an arm MCU, take a look at NXP. The ide is very easy to install on all the platforms.

author: savril
author_rank: Regular Contributor
timestamp: May 16, 2015, 11:53:34 pm
content: Quote from: westfw on May 16, 2015, 11:10:26 pmI installed my STM32 eclipse platform with gcc this afternoon. Took me 2 hours to go through the installation to the led blink example, most of the time was spent downloading the packages (several hundred of MB). Sure it was not as simple as install Arduino IDE -> Open blink LED sketch -> upload to Arduino, but it was doable. Vendor specific stuff is limited to the STMCubeMX to configure the chip I/O and ST/Link programmer/debugger.This tutorial can help :http://www.carminenoviello.com/en/2014/12/28/setting-gcceclipse-toolchain-stm32nucleo-part-1/To me, the harder is to write the code, not to install an IDE. Arduino is nice if you stick to the limited set of chips that it support natively with its nice libraries. Outside of that, you're on your own with the chip datasheet.Arduino is usable as long as you don't have a large codebase to manage. My project will provide a graphical touch interface with smartphone like features (swipe, ...), so it will have a large UI code. For this, the Arduino IDE simply isn't usable, it is in no way meant to manage code this large : there's no project management with multiple files, it compile the full code each time, ...

author: senso
author_rank: Frequent Contributor
timestamp: May 17, 2015, 12:16:59 pm
content: You might want to take a look at uGFX, don't know if it supports swipe moves, but it supports touch interaction with the GUI, so it might be an almost magic bullet.

author: gmb42
author_rank: Frequent Contributor
timestamp: May 17, 2015, 09:28:27 pm
content: Quote from: savril on May 16, 2015, 11:53:34 pmYou might want to take a look atChibiStudio. This is an all in one download of Eclipse etc. for Arm, primarily STM32 and it does have Nucleo examples among many others. You don't have to use the associated ChibiOS but I've found it to be a well designed and useful RTOS.

author: savril
author_rank: Regular Contributor
timestamp: May 17, 2015, 11:41:59 pm
content: Quote from: senso on May 17, 2015, 12:16:59 pmThanks. it seem like a good UI library, free for hobby use. It is compatible with a bunch of RTOS and has a windows app to build the UI. So it seem really easy to use.I don't know if I'll use it because I have the idea to make some animations in the UI, so I more in need of something at lower level like a sprite animation toolkit.

author: langwadt
author_rank: Super Contributor
timestamp: May 18, 2015, 09:07:34 am
content: Quote from: savril on May 17, 2015, 11:41:59 pmfor ST there is also STEMWIN, it's what is running on the stm32f429 boardhttp://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF259090

author: poorchava
author_rank: Super Contributor
timestamp: May 18, 2015, 09:35:52 am
content: I've also found that EM::Blocks (now being renamed to EmBitz) is a decent IDE for STM32s. Particularily if you look to work on STM32F2xxx which CooCox doesn't support yet. The ide is based on Code::Blocks and works much faster than Eclipse based IDEs.

author: BennVenn
author_rank: Regular Contributor
timestamp: May 21, 2015, 01:13:56 am
content: I love these leaf maple boards, I'm have one running my vintage VW beetle's fuel injection. They are very good little cores, keep in mind that no attention to detail was paid to the ADC supply and it is very noisy (at least in the clones)I code in Assembly via Keil uVision (Free under 32k). Simple installation and programming via SWD.