Cov txheej txheem:

UC/OS III Port rau Nucleo-L073RZ Siv Atollic TureSTUDIO IDE: 3 Kauj Ruam
UC/OS III Port rau Nucleo-L073RZ Siv Atollic TureSTUDIO IDE: 3 Kauj Ruam

Video: UC/OS III Port rau Nucleo-L073RZ Siv Atollic TureSTUDIO IDE: 3 Kauj Ruam

Video: UC/OS III Port rau Nucleo-L073RZ Siv Atollic TureSTUDIO IDE: 3 Kauj Ruam
Video: Maiv ntaub nco cheeb kawg siab 10/12/2018 2024, Kaum ib hlis
Anonim
UC/OS III Port rau Nucleo-L073RZ Siv Atollic TureSTUDIO IDE
UC/OS III Port rau Nucleo-L073RZ Siv Atollic TureSTUDIO IDE

Txoj haujlwm no tsuas yog qhov yooj yim ntsais muag coj los tsim hauv uC/OS III RTOS uas tau rub tawm los ntawm Micrium lub vev xaib ntawm no thiab xa mus rau Nucleo-L073RZ pawg thawj coj thiab tau npaj siv hauv Atollic TureSTUDIO. Qhov chaw nres nkoj no tsuas yog tau sim ib zaug thiab ib qho kev sim ntxiv nrog ob lub LED ntsais ntsais ntawm lub sijhawm sib txawv.

Tsuas yog kom pom tseeb yuav muaj teeb meem tsis tau pom dua nrog chaw nres nkoj tab sis raws li Micrium tsis tau muab chaw nres nkoj rau pawg thawj coj no nws yuav pab lwm tus kom pib. Micrium tseem tau xa qhov chaw nres nkoj no rau suav nrog hauv ntu rub tawm tab sis tam sim no nws tseem tsis tau muaj.

Ntau cov haujlwm zoo nyob ntawm no.

Kauj ruam 1: Tau rau Code:

Nkag mus rau Code
Nkag mus rau Code

Rub tawm los ntawm GitHub ntawm no.

Kauj Ruam 2: Txheej Txheem:

Txheej txheem
Txheej txheem

1. Rub tawm qhov project thiab unzip.

2. Tom qab unzipping daim ntawv thiab muab tshuaj txhuam "Micrium_STM32L073RZ_Nucleo_Blinky" nplaub tshev rau hauv paus ntawm c: / tsav.

3. Nkag mus rau “Micrium_STM32L073RZ_Nucleo_Blinky/STM32L073RZ_Nucleo/ST/STM32L073RZ_Nucleo/Blinky/OS3/TrueSTUDIO/” thiab koj yuav pom daim nplaub tshev thiab ob daim ntawv. Kho cov npe ntawm tag nrho peb yam kom lawv suav nrog tus lej thaum pib ntawm peb. (piv txwv li ".settings", ".cproject", ".project") Qhov no yog li kuv tsis tuaj yeem cog lus cov ntaub ntawv thiab cov ntawv tais ceev tseg nrog. prefixes rau GitHub.

4. Qhib qhov project hauv Atollic TrueSTUDIO thiab txaus siab rau.

Kauj Ruam 3: BLINKY Piv txwv rau ST STM32L073RZ-Nucleo

BLINKY Piv txwv rau ST STM32L073RZ-Nucleo
BLINKY Piv txwv rau ST STM32L073RZ-Nucleo

Txoj haujlwm piv txwv no qhia txog yuav ua li cas los tsim lub luag haujlwm ua haujlwm uas ntsais muag LED.

MICRIUM PRODUCT VERSIONS

  • uC/OS-III v3.06.02
  • uC/CPU v1.31.02
  • uC/LIB v1.38.02

IDE/COMPILER VERSIONS

TrueSTUDIO rau STM32/GNU v9.0.1

HARDWARE teeb tsa

Txuas USB Mini-B cable rau CN1 los muab lub zog

Chaw ua haujlwm

ST/STM32L073RZ_Nucleo/Blinky/OS3/TrueSTUDIO/

KEV KAWM NTAWV

TrueSTUDIO

  • Ntshuam chaw ua haujlwm hauv TrueSTUDIO thiab xyuas kom tseeb tias "Luam cov phiaj xwm mus rau hauv chaw ua haujlwm" Lub thawv xaiv yog UNCHECKED.
  • Nias 'CTRL + B' txhawm rau tsim txoj haujlwm thiab tsim Debug ntu los ntawm kev xaiv Blinky chaw ua haujlwm thiab nias F11.
  • Thaum qhov kev sib tham debug tau pib, nias F8 kom khiav/rov ua piv txwv.
  • Txoj haujlwm tsim txoj haujlwm uas ntsais muag LED txhua 1 thib ob.
  • Tam sim no hloov kho hu mus rau OSTimeDlyHMSM () hauv StartupTask () kom nce lossis txo qhov zaus uas LED ntsais muag.
  • Tsim thiab khiav dua kom pom qhov kev hloov pauv.

Hloov Kho Micrium's Blinky piv txwv txoj haujlwm rau STM32L476RG-Nucleo thiab xa nws mus rau STM32L073RZ-Nucleo.

Pom zoo: