Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 23
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
All today's birthdays', congrats!
Matthew T. (35)
Amrit Deshmukh (60)


Next birthdays
05/05 Alexandre (32)
05/07 a.gutzeit (63)
05/08 wpk5008 (34)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: Computer Science
« Previous topic | Next topic »   

Need help with the STM32F4-Discovery board...

1 2 3 
Move Thread LAN_403
Inducktion
Sat Oct 15 2011, 12:31AM Print
Inducktion Registered Member #3637 Joined: Fri Jan 21 2011, 11:07PM
Location: Buffalo, NY
Posts: 1068
I recently acquired this dev board from ST, and I haven't the foggiest idea where to begin with it...

I do have two goals though, and, I perfectly realize it's overkill for the job I have in mind, but I would like to make a Li-ion/NiCd battery charger with it...

I know you need C++ to program it, but other than that, this thing might as well be from Mars as far as I'm concerned.
Back to top
RickR
Sat Oct 15 2011, 03:37AM
RickR Registered Member #93 Joined: Thu Feb 09 2006, 04:11PM
Location: Houston, Texas
Posts: 64
Here's an IDE for the STM32F4: Atollic Website

I haven't used it at all for the F4, but I did compile a test program for the STM32F103RE evaluation board. They claim the free download version for the F4 version only supports C, but it seems to keep making reference in the IDE to C++.

CodeSourcery has command line-driven tools that I believe will work for the F4: CodeSourcery Site

I'm just getting started with the F4 also.

You might find this STMicroelectronics link useful also: STMicro Site Click on Design Support.

Just a bit more:Reference (choose Resources) The >1300 page reference manual can be found here.

This ought to help you get started.

Rick
Back to top
Pinky's Brain
Sat Oct 15 2011, 03:55PM
Pinky's Brain Registered Member #2901 Joined: Thu Jun 03 2010, 01:25PM
Location:
Posts: 837
IMO C++ is not the language to program uCs, unless you just use the C++ compiler to have // comments ... that's fine.

A macro assembler is fine too.
Back to top
Linas
Sat Nov 12 2011, 05:18PM
Linas Registered Member #1143 Joined: Sun Nov 25 2007, 04:55PM
Location: Vilnius, Lithuania
Posts: 721
does any one tried to connect lcd to f4 board ?
i have working code for stm32f103 mcu, but still no luck adapting code for st32f407mcu.
only part witch is left is GPIO initialize function, if some one can help me with that i even could pay neutral
(since i spend more than 20h just by doing that, and i am getting headache from all of this unsuccessful programing)
1321118307 1143 FT126188 P1010863
Back to top
Patrick
Thu Feb 09 2012, 02:55AM
Patrick Registered Member #2431 Joined: Tue Oct 13 2009, 09:47PM
Location: Chico, CA. USA
Posts: 5639
Hey! i just noticed this thread, i too am using a Discovery board from ST, the STM32L!

im using the "L" sereis but id like to do optical flow on one of the "F" chips from the MS kinnect. im still trying to figure out how to use a "SLAM" model for robot real time mapping.

how many of us are there here on the forum?


if i buy the chips alone and try to attch them to my own mainboard, does anyone know what code is needed for debug and usb connectivity? I know the need some low level code first to start working. There are two chips, the target and then the USB handler IC...

Back to top
Carbon_Rod
Thu Feb 09 2012, 04:40AM
Carbon_Rod Registered Member #65 Joined: Thu Feb 09 2006, 06:43AM
Location:
Posts: 1155
CodeSourcery is pretty much a waste of time, and a sleazy ploy to get around the GPL.
Think about the most unoptimized version of the gcc you can imagine.

The gcc is a great compiler, but almost all the board support packages and documentation will be for the over priced Codewarrior IDE/compiler, or horrid Raisonance/Cosmic compilers.

You will need a JTAG programmer if the board did not come with a USB/Serial bootloader programmed on chip. If you can get Uboot working it gets a little easier...

So you think everything is ready to go? Nope, the uC/OS RTOS for the M3 series they often bundle is unstable garbage. This company does not give a bean about other peoples time... smile

Back to top
Patrick
Fri Feb 10 2012, 06:32PM
Patrick Registered Member #2431 Joined: Tue Oct 13 2009, 09:47PM
Location: Chico, CA. USA
Posts: 5639
im trying to get a PID loop running in C on my STM32L... im finding a lot of examples, but i have no idea how good (or poor) they are.
Back to top
Carbon_Rod
Sat Feb 11 2012, 08:20AM
Carbon_Rod Registered Member #65 Joined: Thu Feb 09 2006, 06:43AM
Location:
Posts: 1155
In general your Kalman filter is a good solution:
Link2

Fuzzy logic performance is also fine for low CPU power systems:
Link2

However, it is always advisable to have set limits that override your control loop.
i.e. If the system behaves abnormally than default to a state known to be safe to people, and then the craft.
Back to top
Steve Conner
Sat Feb 11 2012, 02:43PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
Don't Keil or IAR have a free compiler that targets the STM32? I think the code size is limited, but it turns out enough for most hobby projects.
Back to top
Carbon_Rod
Sat Feb 11 2012, 11:12PM
Carbon_Rod Registered Member #65 Joined: Thu Feb 09 2006, 06:43AM
Location:
Posts: 1155
If your STM32F4DISCOVERY has the same model STM32F407VGT6 chip:
Link2

Information about the Ubuntu/linux based boot loader (or bypass using factory rom):
Link2
Full gcc cross compiler on MacOSX and Ubuntu/Linux:
Link2

Perhaps a small virtual machine for STM32 development with an update and build script would be helpful to a few people. As I find it helps to keep your cross-compiler development environments isolated and version locked to prevent random build environment problems.

cheers,

Back to top
1 2 3 

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.