A
A
Atilla2013-02-28 18:29:43
Electronics
Atilla, 2013-02-28 18:29:43

Programming on STM32 microcontroller under Cortex M3?

I have some knowledge of C programming plus some Assembler x86. Good knowledge of physics (if something helps). And figure out the experience-in-the-next-mathdisciline-in-a-week-before-test.
You need to master programming on the STM32 microcontroller to control the flights of multicopters. (Since there is knowledge of flight dynamics, now it would be necessary to state all this in the form of a program)
There is a lot of material on the Internet about this, but they all imply programming experience on other controllers (usually AVR). Therefore, it is hard to study these articles without knowing Input-pull-down, Output push-pull and without knowing the clock generator.
What would you recommend a course of articles / book where all this would be clearly enough described from the very basics. I'm a big swimmer in this topic, so I don't even know where to start. I don’t really want to study programming on a microcontroller first on AVR (they say it’s easier there), and then I don’t really want to switch to ARM, because I think there is a course that explains in detail the basics of programming on microcontrollers using ARM as an example.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
V
Vadim, 2013-03-03
@Atilla

articles:
www.robocraft.ru/blog/ARM/
mycontroller.ru/
easystm32.ru/
ziblog.ru/category/stm32/
we.easyelectronics.ru/tag/STM32/
forums:
electronix.ru/forum/
forum.easyelectronics. ru/
caxapa.ru/
debugging tools:
stm32f3-discovery is the most suitable solution for a stm32-based copter (the microcontroller itself, a debugger, a gyroscope, an accelerometer with a magnetometer-compass are on board). The OpenPilot autopilot is ported to this board .
Examples are attached to the debug board, by which you can learn how to work with the microcontroller and its peripherals. Also, on request, I can send laboratory work intended for those who have not yet worked with these MKs.

F
Flexz, 2013-02-28
@Flexz

www.easystm32.ru

N
nochkin, 2013-02-28
@nochkin

There are some interesting and useful articles to get you started.
For example:
habrahabr.ru/post/123791/
easyelectronics.ru/category/arm-uchebnyj-kurs
we.easyelectronics.ru/blog/STM32/
FreeRTOS + STM32:
habrahabr.ru/post/139601/
habrahabr.ru/post/129105 /

D
dlinyj, 2013-03-01
@dlinyj

Start by playing around with the AVR. Otherwise, many actions will seem obscure and absurd.

X
xorbot, 2013-02-28
@xorbot

I myself coded a little under the Discovery scarf.
Good IDE for stm32 www.coocox.org/CooCox_CoIDE.htm
There is even an article on Habré about programming for this board.
habrahabr.ru/post/128734/

P
Pontific, 2013-03-02
@Pontific

This article helped me a lot: cxem.net/mc/mc131.php
But I myself did not fully understand how to deal with push-pull correctly, choose IPD or IPU. If anyone can tell here, that would be great.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question