2017-03-12 07:15 AM
I'm Japanese student, so I'm poor english.
How do I learn STM32 programing? I want to learn how to use ADC, PWM,
Interrupt handling etc. Is there document or Video/Web seminar for novice? I want documents and video that is very easy to understand.
I have
NUCLEO-F334R8,
Discovery kit with STM32F334C8 and
NUCLEO-F103RB. I have installed STM32Cube MX and IAR Embedded Workbench and I can run example code.
#how-do-i-learn-stm32 #how-to-start2017-03-12 07:46 AM
I would suspect YouTube would be a good place to start.
The Cube install has a lot of example code installed underneath it, if you have other programming and C coding experience you should review those
2017-03-12 08:42 AM
i thik you have to start programming your stm32 whith
you can found a lot of exemples2017-03-12 09:34 AM
It depends on your current know-how and past experience, known programming language and if the interest is in the C embedded programming or driving HW components from STM32. Do you have oscilloscope access?
(Logic Analyser would be the common tool for linux user and oscilloscope for microcontoller users
If coming from linux background, a soft start on microcontroller could be by using Javascript or Python on STM32.
2017-03-12 07:10 PM
Thank you for your reply. Which should I choose mbed or HAL?
2017-03-12 07:46 PM
Thank you for your reply. I have written C language in class. I have used a PIC microcomputer in class. I want to make electronic circuits with STM32. For example, buck converter. Buck converter is a power conversion circuit. I have
oscilloscope access. I'm Windows user. How do I learn STM32 programing?
Thank you for taking time to reply.
2017-03-13 02:52 AM
Hi inoue.ken,
Welcome to STM32 community.
As novice user, refer to this
to have more idea about STM32 Embedded Software offer (feature and limitation of Cube LL , SPL, CubeHAL, Mbed ... )This will help you to decide what solution to choose.
I recommend you to use STM32 Nucelo board is a low-cost and easy-to-use development platform used to quickly evaluate and start a development with an STM32.
I'd highly recommend you also to have a look to these two documents, they provide guidelines on how to build and run a sample application around the STM32 Nucleo board.• •STMicroelectronics STM32 families of 32-bit ARM® Cortex® -M core-based microcontrollers are supported by a complete range of
.You may have a look to the 'Getting started' manuals which allow you to go step by step to install tools and start your project.
Regarding the way to start in order to develop your application, you have various choices:
https://st-videos.s3.amazonaws.com/vid_getting_started_stm32cubemx.mp4
for getting started stm32cubemx.To have idea about mbed and supported features, you can have a look on mbed docs, cookbook.
More that, you may find on
http://www.st.com/content/st_com/en/support/learning/video-page.html?q=STM32&page=1
many videos about STM32.Hope this helps you
Imen
2017-03-13 04:19 AM
Hello Inoue,
Have a look at the STM32F334 Discovery board which has digital power supply HW and SW. It may be a good starting point.
2017-03-16 10:51 AM
I've had great help from this book/e-book:
Mastering STM32 A step-by-step guide to the most complete ARM Cortex-M platform, using a free and powerful development environment based on Eclipse and GCChttps://s3.amazonaws.com/avatars.leanpub.com/avatars/546701/tiny/io1.jpg?1445068020
2017-03-16 10:58 AM
I suggest that you choose a small project to get you started. Not complex. A single goal. As a suggestion, a 5 kHz square wave, with a 30% on and 70% off duty cycle. Your second project could be more ambitious, possibly responding to a high to low event with an interrupt that signals the event by turning on an LED.
There are two free tools that you can write this code with, Atollic True Studio or SW4STM32 (System Workbench for STM32) AC6. True Studio has the advantage that when you upgrade to the Pro version, your code does not need to be modified for a different tool.
STM32Cube set's up all of the complex clocks inside the STM32 device for you, and is a good starting point. There are numerous example code samples and projects within each STM32Cube Library for each of the STM32 chips, you ca examine these to see how things are done.
The very first code sample I created was on the STM32F4 Discovery board, flashing the LEDs at different rates, and responding to the blue pushbutton.
I wish you the best, the STM32 family is a solid blending of ARM and Peripherals.