Cov txheej txheem:

Yuav Ua Li Cas Txais Cov Ntaub Ntawv Los Ntawm STM32 Raws Li Microcontroller rau PC: 5 Kauj Ruam
Yuav Ua Li Cas Txais Cov Ntaub Ntawv Los Ntawm STM32 Raws Li Microcontroller rau PC: 5 Kauj Ruam

Video: Yuav Ua Li Cas Txais Cov Ntaub Ntawv Los Ntawm STM32 Raws Li Microcontroller rau PC: 5 Kauj Ruam

Video: Yuav Ua Li Cas Txais Cov Ntaub Ntawv Los Ntawm STM32 Raws Li Microcontroller rau PC: 5 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
Yuav Ua Li Cas Txais Cov Ntaub Ntawv Los Ntawm STM32 Raws Li Microcontroller rau PC
Yuav Ua Li Cas Txais Cov Ntaub Ntawv Los Ntawm STM32 Raws Li Microcontroller rau PC

Nov ntawm qhov kev qhia no peb tau xa cov ntaub ntawv los ntawm microcontroller rau PC siv ib qho ntawm UART ntawm STM32l100 mcu.

Kauj Ruam 1: Siv Software:

Siv Software
Siv Software
Siv Software
Siv Software

Nov yog cov software peb tau siv rau txoj haujlwm no:

1. Atollic TrueSTUDIO: Atollic® TrueSTUDIO® rau STM32 yog qhov kev hloov pauv tau yooj yim thiab nthuav dav thiab debug deb IDE rau STM32 MCU cov tsim tawm uas xav tau cov cuab yeej muaj zog los pab txhim kho cov cuab yeej siv tau zoo. TrueSTUDIO® yog ua raws cov qauv qhib (ECLIPSE thiab GNU) thiab txuas ntxiv nrog cov yam ntxwv zoo rau kev tswj hwm cov cai thiab kev tshuaj xyuas qib siab. Qhov no muab qhov kev nkag siab tshwj xeeb rau hauv tus qauv thiab kev coj ua zoo ntawm lub system.

Koj tuaj yeem rub tawm cov software los ntawm qhov txuas no

2. STM32CubeMX: STM32CubeMX yog cov cuab yeej siv duab uas tso cai rau kev teeb tsa yooj yim heev ntawm STM32 microcontrollers thiab microprocessors, nrog rau cov cim ntawm kev pib ua haujlwm C code rau Arm® Cortex®-M core lossis ib nrab Linux® Device Tree for Arm ® Cortex®-A core), los ntawm cov txheej txheem ib qib zuj zus.

Koj tuaj yeem rub tawm cov software los ntawm qhov txuas no

Kauj Ruam 2: Cov Khoom Siv:

Cheebtsam Siv
Cheebtsam Siv
Cheebtsam Siv
Cheebtsam Siv

Muaj ob qhov hardwares peb tau siv hauv qhov kev qhia no:

1.32L100CDISCOVERY: 32L100CDISCOVERY pab koj kom pom cov yam ntxwv ntawm STM32L100 Tus Nqi Kab 32-ntsis Cortex®-M3 microcontrollers thiab txhim kho koj daim ntawv thov yooj yim. Nws suav nrog txhua yam xav tau rau cov pib tshiab thiab cov neeg siv kev paub dhau los kom pib sai. Raws li STM32L100RCT6, nws suav nrog ST-LINK/V2 embedded debug tool, LEDs, thawb lub pob kom yooj yim txuas ntawm cov khoom ntxiv thiab cov qauv.

2. USB to TTL converter. Raws li hauv pawg thawj coj pom no peb tsis tuaj yeem tau txais cov ntaub ntawv xov xwm ncaj qha los ntawm st-txuas debugger cable yog li peb yuav tsum yuav ib lub usb rau TTL hloov pauv. Txoj hauv kev ua haujlwm ntawm USB rau TTL hloov pauv tau yooj yim heev Qhov no yog USB rau TTL UART Converter module uas yog raws CP2102 Choj los ntawm SiLabs. Cov qauv no tuaj yeem siv nrog Laptop uas tsis muaj tus qauv chaw nres nkoj. Cov qauv no tsim qhov chaw nres nkoj virtual COM siv USB ntawm koj lub khoos phis tawj uas tuaj yeem txhawb nqa ntau tus qauv Baud Tus Nqi rau kev sib txuas lus txuas.

Kauj Ruam 3: Daim duab Circuit Court

Daim duab Circuit Court
Daim duab Circuit Court

Kev sib txuas yog raws li hauv qab no:

32L100discovery boardUSB to TTL hloov dua siab tshiab

Txd of discovery board (PA9) Rxd

GND GND

3v3 3v 3

Kauj ruam 4: Code:

Raws li peb tau tsim cov cai nrog kev pab los ntawm STM32CubeMX, yog li ntawm no kuv yuav qhia koj cov ntaub ntawv main.c.

koj tuaj yeem tau txais cov ntaub ntawv main.c los ntawm kab ntawv hauv qab no

Kauj Ruam 5: Txoj Cai Ua Haujlwm thiab Yees Duab:

Ntawm no ua ntej koj yuav tsum qhib STM32CubeMX tom qab ntawd koj yuav tsum xaiv lub rooj tsav xwm raug lossis mcu yog tias koj siv lub rooj tsav xwm tshwj xeeb.

Rau tag nrho cov txheej txheem thov saib peb cov vis dis aus.

Kev piav qhia tag nrho Txoj Haujlwm tau muab rau hauv cov vis dis aus saum toj no

Yog tias koj muaj kev tsis ntseeg txog txoj haujlwm no thov tawm lus rau peb hauv qab no. Thiab yog tias koj xav kawm paub ntau ntxiv txog kev teeb tsa kab ke koj tuaj yeem mus ntsib peb tus youtube channel

Thov mus saib thiab nyiam peb Facebook nplooj ntawv rau hloov tshiab tas li.

Ua tsaug & Ua tsaug, Embedotronics yees

Pom zoo: