element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Embedded Forum STM32 MCUs Programming
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 19 replies
  • Subscribers 476 subscribers
  • Views 3813 views
  • Users 0 members are here
  • stm32f4
  • stm
  • programing
  • arm
  • nucleo
Related

STM32 MCUs Programming

mparmpas122321
mparmpas122321 over 11 years ago

Hello!

I am trying to get started with the programming of STM32 MCUs. I have bought a Nucleo board which has a STM32F411RE MCU on it. I have downloaded the Keil ARM MDK development environment. I have studied the datasheet of the STM32F411RE. I am going to read the Programming Manual but i was just wondering if there are any guides or manuals that can show some stuff to get you started. I would really apreciate it, If anyone has some experience on STM32 - Arm programming and could help me . image

  • Sign in to reply
  • Cancel

Top Replies

  • michaelkellett
    michaelkellett over 11 years ago in reply to gihu +2
    I had a quick look at their web site and although they only directly support a very limited number of processors it certainly looks worth a try if you need a free tool. If you are wondering why processor…
  • Anonymous-237891
    Anonymous-237891 over 11 years ago +2
    Hi, Keil is a great programm since it support a lot of MCU right out of the box. If I can give you ONE advice: enroll that course https://www.edx.org/course/utaustinx/utaustinx-ut-6-02x-embedded-systems…
  • johnbeetem
    johnbeetem over 11 years ago in reply to D_Hersey +1
    Don Hersey wrote: Please let me generalize this question: What are low/no cost ways to program ARM in the Wintel and Linux contexts that you guys would recommend? Ones that do not turn into a pumpkin…
Parents
  • mparmpas122321
    mparmpas122321 over 11 years ago

    Thanks for your replies people. But let me state it differently.

    Suppose i have Keil MDK or Em::Blocks. What to do next? Should i program them in assembly or in C (C++)? And what libraries are there for C and C++?

    For example i am currently using mbed library to build my projects. Are there other options available?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • vsluiter
    vsluiter over 11 years ago in reply to mparmpas122321

    Hi Manos,

     

    Programming in assembly for ARM is something that I wouldn't recommend, as you wouldn't be able to easily profit from upgrading or downgrading to other ARM architectures (Cortex-M0 uses a subset of Cortex-M3).

    mbed is a good platform (using it myself a lot too). Because it is open source you could use the functions of mbed in your new program as well; you might have a hard time to strip all the layers that mbed uses to get all hardware to work with their libraries, but the code is available (look in the mbed-src repository).

    For STM32, for each series (F05x,F1..., F3..) there's  a Standard Peripheral Library (google it with your chip's part number). The standard peripheral library is a very fast way to get peripherals working, with easy functions to enable or disable features of peripherals. They're not as high level as mbed, which means you get a lot of control, but you'll have to keep the reference manual of your chip opened to read which function does what. The Standard Peripheral Library is ANSI-C, not C++.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • mparmpas122321
    mparmpas122321 over 11 years ago in reply to vsluiter

    Thank you vsluiter. I think this is the answer i was looking for. image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Anonymous-237891
    Anonymous-237891 over 11 years ago in reply to mparmpas122321

    If you have Keil allready install. You can browse into the example bundle and find a suited example to match with your MCU.

    I did that to start learning STM32 on a discovery board.

    It does inclue all necessaries library and do the blink thing.

    From there it is already much easier to get started.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Anonymous-237891
    Anonymous-237891 over 11 years ago in reply to mparmpas122321

    If you have Keil allready install. You can browse into the example bundle and find a suited example to match with your MCU.

    I did that to start learning STM32 on a discovery board.

    It does inclue all necessaries library and do the blink thing.

    From there it is already much easier to get started.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube