Example: biology

STM32CubeMX Quick Start Guide. - eewebinar.co.kr

STM32 CubeMX Quick Start guide . INTRODUCTION STM32 CubeMX STM32 CubeMX . User manual STM32 CubeMX for STM32 configuration and initialization C code generation . DESCRIPTION STM32 CubeMX STM32 Microcontroller Clock, Peripheral, Middleware C , . - STM32 Microcontroller . - pin, clock, peripheral, middleware C . - Standalone Eclipse plug-in . - report . - . - C IDE tool chain(IAR, KEIL, GCC .. ) . 2 Contents 1 STM32 CubeMX .. 4 2 Welcome page .. 6 3 New Project Window .. 7 4 Main window .. 8 Toolbar and menus.

STM32CubeMX Quick Start Guide. INTRODUCTION 이 문서는 STM32CubeMX 를 처음 사용하는 사람들을 위해 간략한 예제와 함께 STM32CubeMX 사용방법을 간략하게

Tags:

  Guide, Quick, Start, Quick start guide

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of STM32CubeMX Quick Start Guide. - eewebinar.co.kr

1 STM32 CubeMX Quick Start guide . INTRODUCTION STM32 CubeMX STM32 CubeMX . User manual STM32 CubeMX for STM32 configuration and initialization C code generation . DESCRIPTION STM32 CubeMX STM32 Microcontroller Clock, Peripheral, Middleware C , . - STM32 Microcontroller . - pin, clock, peripheral, middleware C . - Standalone Eclipse plug-in . - report . - . - C IDE tool chain(IAR, KEIL, GCC .. ) . 2 Contents 1 STM32 CubeMX .. 4 2 Welcome page .. 6 3 New Project Window .. 7 4 Main window .. 8 Toolbar and menus.

2 10 File menu .. 10 Project menu .. 10 Pinout menu .. 11 Window menu .. 13 Help menu .. 13 5 Clock tree configuration view .. 14 6 Configuration view .. 16 IP and Middleware Configuration window .. 17 User Cnstants configuration window .. 18 GPIO Configuration window .. 19 DMA Configuration window .. 19 NVIC Configuration window .. 21 FreeRTOS middleware configuration view .. 24 7 Power Consumption Calculator (PCC) view .. 25 8 STM32 CubeMX Simple Example .. 31 Figure FIGURE 1 STM32 CUBEMX PAGE ( ) .. 4 FIGURE 2 STM32 CUBEMX .. 4 FIGURE 3 REPOSITORY .. 5 FIGURE 4 REPOSITORY .. 5 FIGURE 5 WELCOME PAGE .. 6 FIGURE 6 MCU SELECTION .. 7 3 FIGURE 7 BOARD SELECTION .. 7 FIGURE 8 MAIN MENU .. 8 FIGURE 9 MAIN WINDOW (NO CHECK THE PERIPHERAL DEFAULT MODE) .. 9 FIGURE 10 MAIN WINDOW (CHECK THE PERIPHERAL DEFAULT MODE).

3 9 FIGURE 11 PINOUT MENU (PINOUT ) .. 11 FIGURE 12 PINOUT MENUS (PINOUT ) .. 11 FIGURE 13 CLOCK TREE VIEW .. 14 FIGURE 14 HSI .. 15 FIGURE 15 HSE CLOCK SOURCE .. 15 FIGURE 16 HSE CLOCK SOURCE .. 15 FIGURE 17 PLL CLOCK SOURCE .. 16 FIGURE 18 STM32 CUBEMX CONFIGURATION VIEW .. 17 FIGURE 19 IP CONFIGURATION WINDOW (STM32F4 SERIES) .. 18 FIGURE 20 USER CONSTANTS WINDOW .. 18 FIGURE 21 .. 18 FIGURE 22 GPIO CONFIGURATION WINDOW - GPIO SELECTION .. 19 FIGURE 23 DMA CONFIGURATION .. 20 FIGURE 24 DMA CONFIGURATION .. 21 FIGURE 25 NVIC CONFIGURATION TAB - FREERTOS DISABLED .. 22 FIGURE 26 NVIC CONFIGURATION TAB - FREERTOS ENABLED .. 23 FIGURE 27 I2C NVIC CONFIGURATION WINDOW\ .. 23 FIGURE 28 FREERTOS CONFIGURATION VIEW .. 25 FIGURE 29 POWER CONSUMPTION CALCULATOR DEFAULT VIEW .. 27 FIGURE 30 BATTERY SELECTION.

4 28 FIGURE 31 STEP MANAGEMENT FUNCTIONS .. 28 FIGURE 32 POWER CONSUMPTION SEQUENCE: NEW STEP DEFAULT VIEW .. 29 FIGURE 33 EDIT STEP WINDOW .. 30 FIGURE 34 STM32F401C-DISCO BOARD .. 31 FIGURE 35 SELECT MCU ON STM32F401C-DISCO .. 32 FIGURE 36 STM32F401 VCTX PINOUT VIEW .. 32 FIGURE 37 STM32F401C-DISCO : PART OF EXTERNAL OSCILLATOR .. 33 FIGURE 38 ENABLE HSE .. 33 FIGURE 39 ADJUST MCU SYSTEM CLOCK .. 33 FIGURE 40 SET PA0-WKUP .. 34 FIGURE 41 PA0-WKUP CONFIGURATION .. 34 FIGURE 42 ENABLE EXTI LINE0 (PA0-WAUP) .. 35 FIGURE 43 STM32F401C-DISCO CODE GENERATION .. 36 FIGURE 44 STM32F401C-DISCO INITIALIZATION CODE WITH WAKE-UP .. 36 FIGURE 45 GPIO INITIALIZATION CODE .. 37 FIGURE 46 WAKE-UP(PA0) INTERRUPT OPERATION .. 37 Table TABLE 1 FILE MENU FUNCTIONS .. 10 TABLE 2 PROJECT MENU .. 10 TABLE 3 PINOUT MENU .. 12 TABLE 4 PIN MENU .. 13 TABLE 5 HELP MENU.

5 13 4 STM32 CubeMX STM32 CubeMX : Figure 1 STM32 CubeMX Page ( ) [ ] . [Help] [Install New Libraries] Library list device version library . Figure 2 STM32 CubeMX Click 5 Library [Help] [Update Settings ..] [Repository Folder] . Figure 3 Repository Figure 4 Repository 6 Welcome page Figure 5 Welcome Page [New Project] : New project window STM32 CubeMX . [Load Project] : (.ios ) . * ( ) STM32 CubeMX , loading backup . ( , user code ) [Help] : User manual . 7 New Project Window New project window 2 Tap . - MCU [MCU selector] tap - STMicroelectronics [Board Selector] tap Figure 6 MCU Selection [MCU Selector] : series, lines, packages, peripherals memory size I/0 MCU.

6 Figure 7 Board Selection 8 [Board Selector] STM32 board type, series, peripheral . [Board Selector] jumper solder bridge . , [Pinout] view LCD, button, communication interface, LED Pin MCU part number . Main window STM32 part number , STM32 CubeMX . Figure 8 Main menu peripheral default mode(Initialize all IP with their default mode) , pinout . peripheral mode GPIO pin ( ) . peripheral peripheral menu tree . 9 Figure 9 Main Window (No check the peripheral default mode) peripheral default mode(Initialize all IP with their default mode) peripheral pinout default mode.

7 STM32 CubeMX peripheral C . Figure 10 Main Window (Check the peripheral default mode) 10 Toolbar and menus STM32 CubeMX menu bar . - File menu - Project menu - Pinout menu (Pinout view ) - Window menu - Help menu File menu File menu (Table 1) . Table 1 File menu functions Icon Name Description New project MCU STMicroelectronics . Load Project STM32 CubeMX .ioc STM32 CubeMX . *( ) STM32 CubeMX , backup .( , user code ) Import Project .. import import . Save Project as .. (pinout, clock tree, IP, PCC).

8 Ioc . Save Project . No icon Close Project welcome . No icon Recent Projects > 5 . No icon Exit STM32 CubeMX . Project menu Table 2 Project menu Icon Name Description 11 Generate code (pinout, clocks, peripherals, middleware) C C .. - Note : STM32 CubeMX , .. Generate Report(1) pdf text . Settings , , toolchain , C code . 1. Report .ioc ..ioc . Pinout menu Pinout menu Sub-menu pinout (Figure 11 ). pinout menu sub-menu hidden (Figure 12 ). Figure 11 Pinout menu (Pinout ) Figure 12 Pinout menus (Pinout ) Pinout menu icon Table 3.

9 12 Table 3 Pinout menu Icon Name Description Undo . Redo Undo . No icon Pins/Signals Options Pin Signal name Pin Pin Label name Label filed . Pin . Pinout search field Pinout view signal label, signal name, pin name . Pin Pin Chip view . Chip view . Show user labels Pin signal name Label Chip view . No icon Clear Pinouts Pinout pinout .. pinout IP . No icon Clear Single Mapped Signals Signal .( Pin ) No icon Set unused GPIOs GPIO pin GPIO . Input, Output Analog .( ) *( ) Debug pin MCU debug.

10 No icon Reset used GPIOs GPIO pin GPIO . Generate csv text pinout file .csv text Pin . Collapse All IP / Middleware tree view tree . Disable Modes Enable Peripheral Middleware Disabled . Enable ( ) Peripheral Middleware 13 Unused ( ) . IP Middleware label (unused) (not available) . Expand All IP / Middleware tree view . Zooming in Chip pinout diagram . Best Fit chip pinout diagram . Zooming out Chip pinout diagram Keep current signals Placement Toolbar . IP Pin . unchecked Pin pin . Window menu Window menu output (Table 4 ). Table 4 Pin menu Name Description Outputs STM32 CubeMX main MCU selection.


Related search queries