0% found this document useful (0 votes)
96 views36 pages

Introduction To STM32 Before 2 Exp

Uploaded by

saira israt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
96 views36 pages

Introduction To STM32 Before 2 Exp

Uploaded by

saira israt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 36

AMERICAN INTERNATIONAL UNIVERSITY – BANGLADESH(AIUB)

Where leaders are created

INTRODUCTION TO STM32

BY TAHSEEN ASMA MEEM

1
SPECIFICATIONS:
• Part number : STM32F401RE
• Core Processor: high-performance ARM®
Cortex® -M4
• Operating Frequency of upto 84 MHz.
• The STM32F401xD/xE incorporate high-speed
embedded memories (512 Kbytes of Flash
memory, 96 Kbytes of SRAM)
• The STM32F401xD/xE operate in the –40 to +105
°C temperature range from a 1.7 (PDR
OFF) to 3.6 V power supply. A comprehensive set
of power-saving mode allows the design
of low-power applications.
• Upto 12 communication interfaces
• Upto 81 I/O ports 2

• Upto 11 timers
3
These features make the
STM32F401xD/xE
microcontrollers suitable for a
wide range of applications:
• Motor drive and application control

• Medical equipment

• Industrial applications: PLC, inverters, circuit


breakers

• Printers, and scanners

• Alarm systems, video intercom, and HVAC

• Home audio appliances


4

• Mobile phone sensor hub


NOW , LETS LEARN
HOW TO START A BASIC
SYSTEM WITH THIS
BOARD:

CONNECT THE BOARD


TO A USB PORT:

5
OPEN THE SOFTWARE STM32 CUBE IDE

6
CLICK LAUNCH TO SELECT A WORKSPACE IN A SPECIFIC
DIRECTORY:

7
THE FOLLOWING WORKSPACE WINDOW WILL POP UP:

8
9
THIS WILL EVENTUALLY ACTIVATE A TARGET SELECTOR
WINDOW:

10
A WINDOW WILL POP UP:

11
CLICK ON BOARD SELECTOR AND NOTICE BLANK SPACE OF
PART NUMBER SEARCH:

12
HOW TIMER WORKS:

13
WRITE THE NAME OF THE PROGRAM IN PROJECT SETUP
WINDOW:

14
SELECT THE OPTION YES TO INITIALIZE ALL THE
PERIPHERALS WITH DEFAULT MODE:

15
SELECT YES TO OPEN PERSPECTIVE:

16
DEVICE CONFIGURATION TOOL IS INITIALIZING:

17
WAIT FOR THE PACKAGES TO BE DOWNLOADED: IT WILL BE
EASY TO NAVIGATE THROUGH THE PORTS AND PINS,
CLOCK FREQUENCY AND PROJECT MANAGER.

18
CLOCK CONFIGURATION:

19
HOW TIMER WORKS:

20
CLICK BUILD PROJECT

21
WRITE THE
INSTRUCTIONS:

• Nucleo board comes with


the STM32 comprehensive
software Hardware
abstraction layer (HAL)
drivers together with
various packaged software
examples.

• It also embeds a debugger


that helps you develop
your own applications
22
23
24
25
AFTER DEBUGGING:

26
SELECT SWITCH TO THE CURRENT PERSPECTIVE:

27
SELECT RESUME AND NEXT SEE THE LED GLOWING UP AS
PER PROGRAM

28
THE BUILT IN LED BLINKS: LED BLINKS AT SIMULTANEOUSLY:

29
SELECT A PIN AS OUTPUT FOR THE SECOND LED:

30
WRITE THE INSTRUCTIONS AS FOLLOWS:

31
THEN BUILD THE PROJECT AND DEBUG AGAIN AS BEFORE .

32
33
34
THEN THE LEDS WILL DISPLAY OUTPUT ACCORDINGLY:

Now try to implement a traffic system using the


basic knowledge of stm32 f401RE:

35
REFERENCES

• https://www.st.com/en/evaluation-tools/nucleo-f401re.html for STM32F401RE,datasheet


• www.st.com
• https://www.st.com/resource/en/user_manual/dm00105879-description-of-stm32f4-hal-and-
ll-drivers-stmicroelectronics.pdf
• www.st.com/en/development-tools/stm32cubeide.html

You might also like