Cov txheej txheem:

Qhov tsis txaus ntseeg STM32 L4!: 12 Cov Kauj Ruam
Qhov tsis txaus ntseeg STM32 L4!: 12 Cov Kauj Ruam

Video: Qhov tsis txaus ntseeg STM32 L4!: 12 Cov Kauj Ruam

Video: Qhov tsis txaus ntseeg STM32 L4!: 12 Cov Kauj Ruam
Video: Tsis Tau Txaus Koj | Kong Chue (Official Music Video) 2024, Hlis ntuj nqeg
Anonim
Image
Image
STM32F746G DISCOVERY
STM32F746G DISCOVERY

Kuv xav pib kab lus no piav qhia tias tsab ntawv L (ntawm L4) txhais tau tias Tsawg (lossis, qhov tseeb, Ultra Low Power). Yog li, nws siv lub zog me me thiab qhia tias vim li cas qhov STM32 no zoo kawg! Nws siv microamps thiab muaj cov txheej txheem sab hauv uas tuaj yeem txheeb xyuas cov nuj nqis ntawm txhua ntu ntu. Qhov no tso cai rau kev tswj hwm kev siv hluav taws xob zoo heev, thiab nrog kev ua haujlwm siab.

Kuv twb tham txog qhov microcontroller hauv daim vis dis aus, "Txoj hauv kev yooj yim tshaj plaws rau program microcontroller!" Hauv cov vis dis aus, kuv tau qhia yuav ua li cas rau nruab STM32 L4 nrog MBED. Tab sis thaum tshawb fawb ntau ntxiv txog nws, Kuv pom qee yam uas cov chaw tsim khoom STMicroelectronics tsis qhia tawm. Nws tau siv Core Arduino hauv lub nti, uas ua rau muaj kev paub dhau los ntawm Arduino IDE.

Hauv daim duab no, peb muaj ob qho qauv ntawm L4. STM32L432KC zoo ib yam rau Arduino Nano thiab STM32L476RG, uas muaj IOs sib npaug rau Arduino Uno. Yog li, thaum ua haujlwm nrog ob qhov hloov pauv ntawm cov tswj hwm lub zog loj no, Kuv yuav qhia koj yuav ua li cas teeb tsa Arduino Core hauv STM32 tsev neeg. Tsis tas li, kuv yuav piav qhia cov yam ntxwv tseem ceeb ntawm STM32 Cov Khoom Siv.

Kauj Ruam 1: Phaj Nrog Core Arduino

Kuv tso cov npe ntawm no txog ntau haiv neeg. Txawm li cas los xij, peb yuav ua haujlwm nrog STM32L432KC thiab STM32L476RG.

STM32F0

  • Nucleo F030R8
  • Nucleo F091RC
  • 32F0308 DISCOVERY

STM32F1

  • BluePill F103C8 (Kev txhawb nqa yooj yim, tsis muaj USB)
  • MapleMini F103CB (Kev txhawb nqa yooj yim, tsis muaj USB)
  • Nucleo F103RB
  • STM32VLDISCOVERY

STM32F2

Nucleo F207ZG

STM32F3

  • Nucleo F302R8
  • Nucleo F303K8
  • Nucleo F303RE yog

STM32F4

  • Nucleo F401RE yog
  • Nucleo F411RE yog
  • Nucleo F429ZI yog
  • Nucleo F446RE yog
  • STM32F407G-DISC1

STM32F7

STM32F746G-DISCOVERY

STM32L0

  • Nucleo L031K6
  • Nucleo L053R8
  • B-L072Z-LRWAN1

STM32L1

Nucleo L152RE yog

STM32L4

  • Nucleo L432KC Cov
  • Nucleo L476RG yog
  • NUCLEO-L496ZG-P Cov
  • NUCLEO-L496ZG-P Cov
  • B-L475E-IOT01A

Kauj ruam 2: STM32F746G DISCOVERY

Tsuas yog ua piv txwv, Kuv qhia cov ntsiab lus ntawm STM32F746G DISCOVERY, uas kuv xav txog tsiaj nyaum. Kuv twb tau xaj cov nti no, thiab kuv vam tias yuav tham txog nws sai sai no.

Yam ntxwv:

STM32F746NGH6 microcontroller nrog 1 Mbytes ntawm Flash nco thiab 340 Kbytes ntawm RAM hauv BGA216 pob

  • On-board ST-LINK / V2-1 txhawb USB lub peev xwm rov suav dua
  • Mbed-enabled (mbed.org)
  • USB muaj nuj nqi: virtual COM chaw nres nkoj, huab hwm coj cia, thiab debug chaw nres nkoj
  • 4.3-nti 480x272 xim LCD-TFT nrog lub vijtsam kov tau
  • Lub koob yees duab txuas
  • SAI audio codec
  • Suab kab hauv thiab kab tawm jack
  • Lub tso suab hais lus tso suab
  • Ob lub ST MEMS microphones
  • SPDIF RCA cov tswv yim txuas
  • Ob lub khawm (tus neeg siv thiab rov pib dua)
  • 128-Mbit Quad-SPI Flash nco
  • 128-Mbit SDRAM (64 Mbits siv tau)
  • Txuas rau daim npav microSD
  • RF-EEPROM tus ntxhais txuas
  • USB OTG HS nrog Micro-AB txuas
  • USB OTG FS nrog Micro-AB txuas
  • Ethernet txuas raws li IEEE-802.3-2002
  • Tsib qhov kev xaiv fais fab:

ST Txuas / V2-1

- USB FS txuas

- USB HS txuas

- VIN los ntawm Arduino txuas

- Sab nraud 5 V los ntawm qhov txuas

Fais fab mov tso tawm forex lwm daim ntawv thov:

3.3 V lossis 5 V

Arduino Uno V3 txuas

Kauj Ruam 3: Arduino Due X STM NUCLEO-L476RG

Arduino Due X STM NUCLEO-L476RG
Arduino Due X STM NUCLEO-L476RG

Nov yog kev sib piv nrog Arduino Due, uas yog ARM Cortex-M3. Kuv tau siv tus qauv no hauv cov yeeb yaj kiab: Nema 23 Stepper Motor nrog Tsav TB6600 nrog Arduino Due, thiab SpeedTest: Arduinos - ESP32 / 8266s - STM32, nrog STM NUCLEO -L476RG, uas yog ARM Cortex -M4 Ultra Low Power, thiab nyob hauv daim duab ntawm sab xis.

Arduino Dua:

Microcontroller: AT91SAM3X8E

Kev Ua Haujlwm Voltage: 3.3V

Kev tawm tswv yim Voltage (pom zoo): 7-12V

Kev tawm tswv yim Voltage (txwv): 6-16V

Digital I / O Pins: 54 (ntawm 12 muab PWM tso tawm)

Analog Input Pins: 12

Analog Output Pins: 2 (DAC)

Tag Nrho DC Tso Tawm Tam Sim No ntawm txhua kab I / O: 130 mA

DC Tam Sim No rau 3.3V Pin: 800 mA

DC Tam Sim No rau 5V Pin: 800 mA

Flash nco: 512 KB txhua qhov muaj rau cov neeg siv daim ntawv thov

SRAM: 96 KB (ob lub txhab nyiaj: 64KB thiab 32KB)

Moos Ceev: 84 MHz

Ntev: 101.52 hli

Dav: 53.3 hli

Qhov hnyav: 36 g

STM NUCLEO-L476RG:

STM32L476RGT6 hauv LQFP64 pob

ARM®32-ntsis Cortex®-M4 CPU

Adaptive real-time accelerator

(ART Accelerator ™) tso cai 0-tos lub xeev ua tiav los ntawm Flash nco

80 MHz max CPU zaus

VDD los ntawm 1.71 V txog 3.6 V

1 MB Flash

128 KB SIB

TSI (3)

I2C (3)

UAS (3)

UA (2)

LUAG (1)

GPIO (51) nrog kev muaj peev xwm cuam tshuam sab nraud

Capacitive sensing nrog 12 raws

12-ntsis ADC (3) nrog 16 raws

12-ntsis DAC nrog 2 raws

FPU lossis Chav Nyob Ntab

* Kuv hais qhov no tshwj xeeb FPU ntawm STM NUCLEO-L476RG, uas txhais tau hais tias lub nti ua cov lej trigonometric nrog qhov xav tau ceev. Qhov no tsis zoo li Arduino Due, uas xav tau cov txheej txheem caj ces los ua qhov ntawd.

Kauj ruam 4: Dhrystone

Dhrystone
Dhrystone
Dhrystone
Dhrystone

Dhrystone yog lub khoos phis tawj ntsuas lub khoos phis tawj tsim nyob rau xyoo 1984 los ntawm Reinhold P. Weicker, uas yog lub hom phiaj los ua tus sawv cev ntawm (tus lej) cov txheej txheem txheej txheem. Dhrystone tau dhau los ua tus sawv cev ntawm kev ua haujlwm tag nrho (CPU). Lub npe "Dhrystone" yog lub txim ntawm qhov sib txawv piv txwv txheej txheem hu ua Whetstone. Nov yog qhov ntsuas los ntawm qee qhov kev ua haujlwm dav dav.

Txoj haujlwm no nyob ntawm no txhawm rau suav qee yam hauv cov microcontrollers hauv Arduino. Thiab qhov tshwm sim ntawm ob qhov kev sim kuv tau ua, ib qho nrog Dhrystone thiab lwm qhov los ntawm SpeedTest video, muaj raws li hauv qab no:

Arduino Them Nyiaj: US $ 37.00

Dhrystone Benchmark, Version 2.1 (Hom Lus: C)

Kev pib ua tiav, 300, 000 sau los ntawm Dhrystone

Kev ua tiav xaus

Microseconds rau ib qho dhau Dhrystone: 10.70

Dhrystones Ib Thib Ob: 93, 431.43

VAX MIPS ntsuam xyuas = 53.18 DMIPS

Kev xeem xeem Fernandok

Tag nrho lub sijhawm: 2,458 ms

  • Tsis muaj FPU
  • Dhrystone software ntawm Arduino

www.saanlima.com/download/dhry21a.zip

STM NUCLEO-L476RG: US $ 23.00

Dhrystone Benchmark, Version 2.1 (Hom Lus: C)

Kev pib ua tiav, 300, 000 sau los ntawm Dhrystone

Kev ua tiav xaus

Microseconds rau ib qho dhau Dhrystone: 9.63

Dhrystones ib Thib Ob: 103, 794.59

VAX MIPS ntsuam xyuas = 59.07 DMIPS

Kev xeem xeem Fernandok

Tag Nrho Lub Sijhawm: 869 ms 2.8x FASTER

  • PI txog 40Mbit / s, USART 10Mbit / s
  • 2x DMA (14 raws)
  • Mus txog 80 MHz / 100 DMIPS nrog ART Accelerator

Kauj Ruam 5: STM32L432KC X Arduino Nano

STM32L432KC X Arduino Nano
STM32L432KC X Arduino Nano

Sab laug laug yog STM32L432KC, uas STMicroelectronics tso tus Arduino Nano zoo ib yam hauv daim duab ntawm sab xis.

Kauj Ruam 6: STM32L432KC

Qauv: STM32L432KC
Qauv: STM32L432KC

Ultra-low-power Arm® Cortex®-M4 32-ntsis

MCU + FPU, 100DMIPS, txog 256KB Flash, 64KB SRAM, USB FS, analog, suab

Mus txog 26 IOs sai dua, zam rau 5V

  • RTC nrog HW daim ntawv qhia hnub, tswb, thiab ntsuas ntsuas
  • Mus txog 3 qhov muaj peev xwm nrhiav tau raws
  • 11x Timers: 1x16-ntsis ua haujlwm siab tswj lub cav

1x 32-ntsis thiab 2x 16-ntsis lub hom phiaj dav dav, 2x 16-ntsis yooj yim, 2x lub zog qis 16-ntsis timers (muaj nyob rau hauv Nres hom), 2x watchdogs, SysTick timer

Nco:

- Txog 256 KB Flash, cov cai muaj cai nyeem ntawv tiv thaiv

- 64 KB SRAM suav nrog 16 KB nrog kho vajtse sib npaug

- Quad SPI nco interface

Cov khoom siv analog zoo ib yam (cov khoom siv ywj pheej)

- 1x 12-ntsis ADC 5 Msps, mus txog 16 khoom nrog kev kho vajtse ntau, 200 μA / Msps

- 2 raws ntawm 12-ntsis DAC tso zis, siv hluav taws xob tsawg

- 1x lub tshuab ua haujlwm nrov nrog PGA built-in

- 2x piv rau ultra-low zog cuam tshuam

- 1x UPS (serial audio interface)

- 2x I2C FM + (1 Mbit / s), SMBus / PMBus

- 3x USARTs (ISO 7816, LIN, IrDA, modem)

- 1x LPUART (Nres 2 sawv)

- 2x SPI (thiab 1x SPI Quad)

CAN (2.0B nquag)

- Ib tus xov tooj raws tu qauv tus tswv SWPMI I / F.

- IRTIM (infrared interface)

  • 14-channel DMA maub los
  • Random Number Generator

Kauj Ruam 7: Nruab Core Arduino rau daim npav STM32L4

Nruab Core Arduino rau daim npav STM32L4
Nruab Core Arduino rau daim npav STM32L4
  1. Nruab ST-Txuas program uas sau tseg
  2. Json Chaw Nyob
  3. Boards: Tus Thawj Tswj Daim Npav
  4. Tsev qiv ntawv: Tus Thawj Saib Xyuas Tsev Qiv Ntawv

Kauj Ruam 8: Nruab ST -Txuas - Qhov Kev Pab Cuam Cov Ntaub Ntawv

Nruab ST -Txuas - Qhov Kev Pab Cuam Cov Ntaub Ntawv
Nruab ST -Txuas - Qhov Kev Pab Cuam Cov Ntaub Ntawv

Rub tawm cov ntawv ntawm https://www.st.com/en/development-tools/stsw-link0…. Tsuas yog sau npe, rub tawm, thiab teeb tsa lub cuab yeej.

Kauj Ruam 9: Chaw Nyob Json

Chaw Nyob Json
Chaw Nyob Json

Ntawm cov khoom, suav nrog qhov chaw nyob hauv qab no:

github.com/stm32duino/BoardManagerFiles/ra…

Kauj ruam 10: Boards: Board Manager

Boards: Board Manager
Boards: Board Manager

Hauv Arduino Board Manager, teeb tsa STM32 Core, uas yog kwv yees li 40MB.

Kauj Ruam 11: Cov Tsev Qiv Ntawv: Tus Thawj Saib Xyuas Tsev Qiv Ntawv

Tsev qiv ntawv: Tus Thawj Saib Xyuas Tsev Qiv Ntawv
Tsev qiv ntawv: Tus Thawj Saib Xyuas Tsev Qiv Ntawv

Thaum kawg, nruab cov tsev qiv ntawv.

Kuv tus kheej nyiam pab pawg STM32duino.com, uas muaj ntau qhov piv txwv, qee qhov uas kuv tau teeb tsa. Kuv kuj tau rub tawm FreeRTOS, uas kuv nyiam heev. Kuv pom nws nrawm thiab ntseeg tau. Kuv kuj tau teeb tsa (tab sis tseem tsis tau sim) LRWAN. Kuv yuav qhia sai sai rau koj seb nws puas zoo lossis tsis yog.

Kauj ruam 12: Rub tawm PDF

PDF

Pom zoo: