STM32 F3 Discovery Board - Page 1
Forum section: electronics / general

author: Rutger
author_rank: Regular Contributor
timestamp: September 13, 2012, 09:09:10 pm
content: Just received an email from Digi-key they are selling a STM32 F3 Discovery Board for $ 10.90.The board has the following features:STM32F303VCT6 microcontroller featuring 256 KB Flash, 48 KB RAM in an LQFP100 packageOn-board ST-LINK/V2 with selection mode switch to use the kit as a standalone ST-LINK/V2 (with SWD connector for programming and debugging)Board power supply: through USB bus or from an external 3 V or 5 V supply voltageExternal application power supply: 3 V and 5 VL3GD20, ST MEMs motion sensor, 3-axis digital output gyroscopeLSM303DLHC, ST MEMs system-in-package featuring a 3D digital linear acceleration sensor and a 3D digital magnetic sensorTen LEDs:LD1 (red) for 3.3 V power onLD2 (red/green) for USB communicationEight user LEDS, LD3/10 (red), LD4/9 (blue), LD5/8 (orange) and LD6/7 (green)Two pushbuttons (user and reset)USB USER with Mini-B connectorExtension header for all LQFP100 I/Os for quick connection to prototyping board and easy probingI thought is sounded like a good deal for the price, but hey maybe I am out of touch.Here is the link to the digi-key website, it pre-order only right now:http://www.digikey.com/product-detail/en/STM32F3DISCOVERY/497-13192-ND/3522185&WT.z_email=STM_STM32F30912-2_stm32f3_enRutger

author: ptricks
author_rank: Frequent Contributor
timestamp: September 14, 2012, 05:23:00 am
content: The thing about the ST boards for me has always been that way the software libraries are written, not fun at all to use.Make sure you take a look at the programming environment before you spend money.

author: andyturk
author_rank: Frequent Contributor
timestamp: September 14, 2012, 05:48:43 am
content: Well, for less than $15 you can get an F4Discovery with a 168MHz processor, a meg of flash and 192K of RAM. That's a pretty amazing deal for what you get. Personally though, I'm using a hot-rodded STM32VLDiscovery. I desoldered the original F100 mcu and replaced it with a much more serious F103. I would've used the F4Disco, but you can't plug it into a breadboard because it's got dual headers on both sides.Here's the VLDiscovery hiding behind a bunch of wires:The board is supported by ChibiOS (a free RTOS) out of the box and everything compiles cleanly with the Yagarto toolchain on OS X.The F3Discovery board looks pretty good, but it has those dual headers which take all the fun out of breadboarding.

author: T4P
author_rank: Super Contributor
timestamp: September 14, 2012, 08:25:57 am
content: Well you can always do thisEvery single board ST produces actually is like a amazon kindle fire/google nexus 7 approach, the product costs more than the cost price.Well, if you ever knew the difference between the F3 and the F4 is that the F4 is a whole new monster to the F3, it's quite literally a lotus exige S vs a bugatti veyronIt's much faster and with a FPU That type of F4 is usually Cortex-M4FOnly thing the F2 doesn't have but it's 3/4 the performance of the F4 is the FPU. That's what it lacksPlus if you buy the disco boards the two boards it doesn't really make any sense to get the F3 if you already know the performance game, of course neither are particularly good at power consumption. Well that's what the L series is for

author: poorchava
author_rank: Super Contributor
timestamp: September 14, 2012, 10:04:19 am
content: I don't know what's the current status, but like a year and a half ago ST libraries used to suck really bigtime. For example there was no function to update PWM duty cycle. If you wanted to change the duty cycle without resorting to pure register math you would have to re-initialize whole pwm module....

author: Short Circuit
author_rank: Frequent Contributor
timestamp: September 14, 2012, 12:40:33 pm
content: Well... software-wise, ST isn't that great, that's right.But if you consider just the hardware, it's great value for money.Suppose you need a gyro for a project; this board is way cheaper than a raw L3GD20 (older L3G4200 actually) breakout from sparkfun ($50).Heck, the board is almost same price as a single piece of the controller (E9.71 vs E8.11 at Digikey).Personally, I prefer to start projects by designing a board and work from a prototype. But I do know other engineers that start most of their projectson one of these Discovery boards. You can't beat 10 bucks to get started on SW development rightaway, especially when there's a deadline of some sort.

author: andyturk
author_rank: Frequent Contributor
timestamp: September 14, 2012, 03:31:14 pm
content: Not that I'm am embedded expert, but most of the OEM code I've seen looks like it was written by summer interns. Yuck.For an alternative, you guys should really check out ChibiOS:http://chibios.org. It's a very well implemented open-source RTOS (real time operating system) that also has a common API for hardware peripherals (e.g., USARTS, SPI, ADC, etc.). I think the guy who wrote it works for ST, so the STM8 and STM32 support is very good, but it also has ports for AVR, AT91, LPC and even MSP430.The demo apps compile cleanly out-of-the-box with GCC with specific examples for several Olimex dev boards as well as the shipping STM Discovery boards (i.e., no F3 yet).It's really good. Check it out!

author: T4P
author_rank: Super Contributor
timestamp: September 14, 2012, 10:34:20 pm
content: Yep, ChibiOS works perfectly on the ST boards

author: mrflibble
author_rank: Super Contributor
timestamp: September 18, 2012, 10:49:47 pm
content: Quote from: poorchava on September 14, 2012, 10:04:19 amRecent measurements indicate they (ST) have a Quality Assurance department dedicated to safeguarding the Library Suckage Level.

author: Badreddine
author_rank: Newbie
timestamp: November 20, 2012, 02:29:49 pm
content: Hi poorchava,You can just need a training on how to use the ST library because I am using the function to update PWM duty cycle TIM_SetCompare1(), TIM_SetCompare2(), TIM_SetCompare3()....So you can judge that ST library is not good if you don't know how to use it. Perhaps you are familiar with other libraries and ST one is new for you.

author: Bored@Work
author_rank: Super Contributor
timestamp: November 20, 2012, 06:50:52 pm
content: Quote from: Badreddine on November 20, 2012, 02:29:49 pmBullshit. A library for a microcontroller that needs special training so it can be properly used is a steaming piece of crap. A library is there to simplify things. It should come with proper documentation and examples, enabling "those skilled in the art" to get started within minutes.

author: KedasProbe
author_rank: Frequent Contributor
timestamp: November 20, 2012, 08:11:37 pm
content: My F3 arrived today.http://www.st.com/internet/com/SALES_AND_MARKETING_RESOURCES/MARKETING_COMMUNICATION/MARKETING_BROCHURE/brstm32f3.pdfProbably going to use the F37X in a future project (with 16 bit ADC)About learning to use this board:Anyone knows some good DAC function generator code that can be used?Also something like AC multimeter code would be interesting.

author: RCMR
author_rank: Frequent Contributor
timestamp: November 20, 2012, 08:48:34 pm
content: My STM32F4 arrived yesterday and my first comment is: Bloody USPS!It was ordered a month ago and when it (finally) arrived, it had a little stamp on it that said "mis-sent to Thailand" -- which explains the very long delay in delivery.My observations are:1. if the Thai post office has had rubber stamps made with this legend embossed upon them then they must get a lot of mail that is actually supposed to be going somewhere else.2. it is no wonder that the USPS is in huge debt and on the verge of bankruptcy if this is the level of competence in their sorting rooms.But that aside -- I'll be getting stuck in with some familiarisation and porting some of my code to it over the next week or two.But, as the basis for projects, I've ordered one of those $32 F3 boards with the stacked 2.8" touch-screen LCD. These look like they'd be brilliant for a raft of projects around the lab and as the basis of one-off systems for clients.

author: mrflibble
author_rank: Super Contributor
timestamp: November 20, 2012, 11:54:47 pm
content: Quote from: Badreddine on November 20, 2012, 02:29:49 pmOne can indeed judge that the ST library is not good for you if you like your libraries to come with well written documentation.QuoteIndeed I am familiar with other libraries and this familiarity enables me to make the qualitative statement that the aforementioned ST library sucks documentative donkeybawls.

author: andyturk
author_rank: Frequent Contributor
timestamp: November 21, 2012, 07:04:47 am
content: Quote from: mrflibble on November 20, 2012, 11:54:47 pmIf the datasheet sucks really hard, then the library code looks better (in comparison). E.g., TI has pretty good datasheets, so it's sometimes easier to just write the stuff yourself instead of trying to figure out the library API. ST's datasheets aren't quite as good, so it's more of a toss up.It'd be great to have TI's doc with ST's silicon, but the world doesn't work that way.

author: poorchava
author_rank: Super Contributor
timestamp: November 21, 2012, 09:09:15 am
content: I have an impression that ST has a general mess in their documentation. I actually happen to be ST-stuff-guy in my company and i tell you: they are a mess. Most of the documentation they have (other than official datasheet) is a pile of copy and paste. And draft datasheets with 3/4 of the fields containing "TBD" are not strange either.But indeed their silicon is impressive. Actually i think they produce the fastest M4 on the market right now.And Discovery boards are nice because ST-link is now officially supported by OpenOCD which means you can program&debug the stuff from any toolchain and IDE you want.

author: xDR1TeK
author_rank: Contributor
timestamp: November 28, 2012, 11:25:24 pm
content: Best IDE that I can tell is the Keil IDE. For the library, I modded some from ARM and some from ST. I have to make my own template for new projects. Theirs was just too large to carry around.

author: McMonster
author_rank: Frequent Contributor
timestamp: November 29, 2012, 03:51:22 am
content: Quote from: xDR1TeK on November 28, 2012, 11:25:24 pmWe use Keil on embedded programming course on my university and I really don't like it. Primitive, stubborn, causes problems sometimes (for example we always need a full rebuild of the code before this damned thing actually starts outputting and flashing a new binary to the micro). No code completion or as-you-write error detection (it's a major pain in the ass to use ST's peripheral and demo libraries without it), extremely stupid code indentation behaviour. Possibly some of those can be eliminated by settings, but we don't really have time to mess with anything during the lab (which itself is poorly organized) and on a computer and system profile shared by everyone. The user interface in overall feels like it has been developed well over a decade or two ago and not touched since.I would sell my soul so that they let me just connect the board to my own laptop and use Eclipse with Linaro and OpenOCD, but they refuse every time. Maybe I'm biased a bit, but this makes Keil no less awful.

author: KedasProbe
author_rank: Frequent Contributor
timestamp: November 29, 2012, 01:02:09 pm
content: Where can I find shared (demo) code for this board, or for any other Cortex-M4(F) board?

author: Unknown
author_rank: Unknown
timestamp: November 29, 2012, 07:04:56 pm
content: Semi companies almost always offer demo code for their demo boards, for examplefor the STM32F3DISCOVERY(click on design support and scroll down to firmware).

author: KedasProbe
author_rank: Frequent Contributor
timestamp: November 30, 2012, 04:41:54 pm
content: Thanks somehow I looked over that link.any other places where you can find shared project?

author: krenzo
author_rank: Regular Contributor
timestamp: November 30, 2012, 05:46:57 pm
content: It looks like they're giving these away now. "Register for your FREE KIT":http://www.st.com/internet/evalboard/product/254044.jsp

author: T4P
author_rank: Super Contributor
timestamp: November 30, 2012, 06:21:38 pm
content: Quote from: krenzo on November 30, 2012, 05:46:57 pmI don't see the text anywhere, mind giving me a hand?

author: krenzo
author_rank: Regular Contributor
timestamp: November 30, 2012, 07:14:26 pm
content: Quote from: T4P on November 30, 2012, 06:21:38 pm

author: poptones
author_rank: Frequent Contributor
timestamp: November 30, 2012, 08:13:25 pm
content: OK, for free I'll take one!How do they make money giving them away?Volume

author: andersm
author_rank: Super Contributor
timestamp: November 30, 2012, 08:13:54 pm
content: The offer is apparently valid in North America only, the button doesn't show up if you open the page from somewhere else.

author: T4P
author_rank: Super Contributor
timestamp: November 30, 2012, 08:48:13 pm
content: Damn ... those bastardsthey did it again!