Part 1
요약·해설
RF 수치와 MCU hardware, 11개 지원 controller, SX1276 SPI pin과 USB solder bridge를 상세히 설명합니다.
STM32L072CZ
SX1276
860–930MHz
32MHz
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
9D22A29705C7A3D7730984D722CBCCEE119A1573AB78D80EF6E2680C2A43B549
.. _b_l072z_lrwan1_board:
ST B-L072Z-LRWAN1 Discovery kit
###############################
Overview
********
This Discovery kit features an all-in-one open module CMWX1ZZABZ-091 (by Murata).
The module is powered by an STM32L072CZ and an SX1276 transceiver.
This kit provides:
- CMWX1ZZABZ-091 LoRa* / Sigfox* module (Murata)
- Embedded ultra-low-power STM32L072CZ Series MCUs, based on
Arm* Cortex* -M0+ core, with 192 Kbytes of Flash
memory, 20 Kbytes of RAM, 6 Kbytes of EEPROM
- Frequency range: 860 MHz - 930 MHz
- USB 2.0 FS
- 4-channel,12-bit ADC, 2xDAC
- 6-bit timers, LP-UART, I2C and SPI
- Embedded SX1276 transceiver
- LoRa* , FSK, GFSK, MSK, GMSK and OOK modulations (+ Sigfox* compatibility)
- +14 dBm or +20 dBm selectable output power
- 157 dB maximum link budget
- Programmable bit rate up to 300 kbit/s
- High sensitivity: down to -137 dBm
- Bullet-proof front end: IIP3 = -12.5 dBm
- 89 dB blocking immunity
- Low Rx current of 10 mA, 200 nA register retention
- Fully integrated synthesizer with a resolution of 61 Hz
- Built-in bit synchronizer for clock recovery
- Sync word recognition
- Preamble detection
- 127 dB+ dynamic range RSSI
- SMA and U.FL RF interface connectors
- Including 50 ohm SMA RF antenna
- On-board ST-LINK/V2-1 supporting USB re-enumeration capability
- USB ST-LINK functions:
- Board power supply:
- Through USB bus or external VIN/3.3 V supply voltage or batteries
- 3xAAA-type-battery holder for standalone operation
- 7 LEDs:
- 4 general-purpose LEDs
- A 5 V-power LED
- An ST-LINK-communication LED
- A fault-power LED
- 2 push-buttons (user and reset)
- Arduino* Uno V3 connectors
.. image:: ../../../../../../../boards/st/b_l072z_lrwan1/doc/img/b_l072z_lrwan1.jpg
:align: center
:alt: B-L072Z-LRWAN1
More information about the board can be found at the `B-L072Z-LRWAN1 website`_.
Hardware
********
The STM32L072CZ SoC provides the following hardware IPs:
- Ultra-low-power (down to 0.29 µA Standby mode and 93 uA/MHz run mode)
- Core: ARM* 32-bit Cortex*-M0+ CPU, frequency up to 32 MHz
- Clock Sources:
- 1 to 32 MHz crystal oscillator
- 32 kHz crystal oscillator for RTC (LSE)
- Internal 16 MHz factory-trimmed RC ( |plusminus| 1%)
- Internal low-power 37 kHz RC ( |plusminus| 5%)
- Internal multispeed low-power 65 kHz to 4.2 MHz RC
- RTC with HW calendar, alarms and calibration
- Up to 24 capacitive sensing channels: support touchkey, linear and rotary touch sensors
- 11x timers:
- 2x 16-bit with up to 4 channels
- 2x 16-bit with up to 2 channels
- 1x 16-bit ultra-low-power timer
- 1x SysTick
- 1x RTC
- 2x 16-bit basic for DAC
- 2x watchdogs (independent/window)
- Up to 84 fast I/Os, most 5 V-tolerant.
- Memories
- Up to 192 KB Flash, 2 banks read-while-write, proprietary code readout protection
- Up to 20 KB of SRAM
- External memory interface for static memories supporting SRAM, PSRAM, NOR and NAND memories
- Rich analog peripherals (independent supply)
- 1x 12-bit ADC 1.14 MSPS
- 2x 12-bit DAC
- 2x ultra-low-power comparators
- 11x communication interfaces
- USB 2.0 full-speed device, LPM and BCD
- 3x I2C FM+(1 Mbit/s), SMBus/PMBus
- 4x USARTs (ISO 7816, LIN, IrDA, modem)
- 6x SPIs (4x SPIs with the Quad SPI)
- 7-channel DMA controller
- True random number generator
- CRC calculation unit, 96-bit unique ID
- Development support: serial wire debug (SWD), JTAG, Embedded Trace Macrocell*
More information about STM32L072CZ can be found here:
- `STM32L072CZ on www.st.com`_
- `STM32L0x2 reference manual`_
Supported Features
==================
The Zephyr B-L072Z-LRWAN1 Discovery board configuration supports the following hardware features:
+-----------+------------+-------------------------------------+
| Interface | Controller | Driver/Component |
+===========+============+=====================================+
| UART | on-chip | serial port-polling; |
| | | serial port-interrupt |
+-----------+------------+-------------------------------------+
| PINMUX | on-chip | pinmux |
+-----------+------------+-------------------------------------+
| I2C | on-chip | i2c |
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| RTC | on-chip | counter |
+-----------+------------+-------------------------------------+
| TRNG | on-chip | true random number generator |
+-----------+------------+-------------------------------------+
| EEPROM | on-chip | eeprom |
+-----------+------------+-------------------------------------+
| USB | on-chip | usb |
+-----------+------------+-------------------------------------+
| FLASH | on-chip | flash |
+-----------+------------+-------------------------------------+
| LoRa | on-module | sx1276 |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.
The default configuration can be found in the defconfig file:
:zephyr_file:`boards/st/b_l072z_lrwan1/b_l072z_lrwan1_defconfig`
Connections and IOs
===================
B-L072Z-LRWAN1 Discovery kit has GPIO controllers. These controllers are responsible for pin muxing,
input/output, pull-up, etc.
Available pins:
---------------
For detailed information about available pins please refer to `B-L072Z-LRWAN1 website`_.
Default Zephyr Peripheral Mapping:
----------------------------------
- UART_1_TX/RX: PA9/PA10 (Arduino Serial)
- UART_2_TX/RX: PA2/PA3 (ST-Link Virtual COM Port)
- SPI1 NSS/SCK/MISO/MOSI: PA15/PB3/PA6/PA7 (Semtech SX1276 LoRa* Transceiver)
- SPI2 NSS/SCK/MISO/MOSI: PB12/PB13/PB14/PB15 (Arduino SPI)
- I2C1 SCL/SDA : PB8/PB9 (Arduino I2C)
System Clock
------------
B-L072Z-LRWAN1 Discovery board System Clock is at 32MHz.
Serial Port
-----------
B-L072Z-LRWAN1 Discovery board has 2 U(S)ARTs. The Zephyr console output is assigned to UART2.
Default settings are 115200 8N1.
USB device
----------
B-L072Z-LRWAN1 Discovery board has 1 USB device controller. However,
the USB data lines are not connected to the MCU by default. To connect
the USB data lines to the MCU, short solder bridges SB15 and SB16.
Programming and Debugging
*************************
Applications for the ``b_l072z_lrwan1`` board configuration can be built and
flashed in the usual way (see :ref:`build_an_application` and
:ref:`application_run` for more details).
Flashing
========
B-L072Z-LRWAN1 Discovery board includes an ST-LINK/V2-1 embedded debug
tool interface. This interface is supported by the openocd version included
in the Zephyr SDK since v0.9.2.
Flashing an application to B-L072Z-LRWAN1 Discovery board
---------------------------------------------------------
Here is an example for the :ref:`hello_world` application.
Connect the B-L072Z-LRWAN1 Discovery board to a STLinkV2 to your host computer using the USB port, then
run a serial host program to connect with your board. For example:
.. code-block:: console
$ minicom -D /dev/ttyACM0
Then build and flash the application:
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: b_l072z_lrwan1
:goals: build flash
You should see the following message on the console:
.. code-block:: console
$ Hello World! arm
Debugging
=========
You can debug an application in the usual way. Here is an example for the
:ref:`hello_world` application.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: b_l072z_lrwan1
:maybe-skip-config:
:goals: debug
.. _B-L072Z-LRWAN1 website:
https://www.st.com/en/evaluation-tools/b-l072z-lrwan1.html
.. _STM32L072CZ on www.st.com:
https://www.st.com/en/microcontrollers/stm32l072cz.html
.. _STM32L0x2 reference manual:
https://www.st.com/resource/en/reference_manual/DM00108281.pdf
Part 3
한국어 전문 번역

개요
B-L072Z-LRWAN1 Discovery kit는 Murata CMWX1ZZABZ-091 all-in-one open module을 탑재합니다. Module은 STM32L072CZ MCU와 SX1276 transceiver로 구성됩니다.
Kit 기능
- CMWX1ZZABZ-091 LoRa/Sigfox module
- Cortex-M0+ STM32L072CZ: flash 192KB, RAM 20KB, EEPROM 6KB
- 860~930MHz
- USB 2.0 FS
- 4-channel 12-bit ADC, DAC 2개
- 6-bit timer, LP-UART, I2C, SPI
- Embedded SX1276
- LoRa, FSK, GFSK, MSK, GMSK, OOK modulation과 Sigfox 호환
- +14dBm 또는 +20dBm selectable output
- Maximum link budget 157dB
- 최대 300kbit/s programmable bit rate
- 최저 -137dBm sensitivity
- IIP3 -12.5dBm front end
- Blocking immunity 89dB
- Rx current 10mA, register retention 200nA
- 61Hz resolution integrated synthesizer
- Clock recovery용 bit synchronizer
- Sync word recognition과 preamble detection
- 127dB+ dynamic range RSSI
- SMA·U.FL RF connector와 50Ω SMA antenna
- USB re-enumeration을 지원하는 onboard ST-LINK/V2-1
- USB bus, external VIN/3.3V, battery 전원
- Standalone용 AAA battery holder 3칸
- General-purpose 4개·5V power·ST-LINK communication·fault power LED를 포함한 LED 7개
- User/reset push-button 2개
- Arduino Uno V3 connector
STM32L072CZ hardware
- Standby 0.29µA, run 93µA/MHz의 ultra-low-power
- 최대 32MHz 32-bit Cortex-M0+
- 1~32MHz crystal, RTC용 32kHz LSE, 16MHz RC(±1%), 37kHz low-power RC(±5%), 65kHz~4.2MHz multispeed RC
- Calendar·alarm·calibration RTC
- Touchkey·linear·rotary sensor용 capacitive channel 최대 24개
- Timer 11개: 4-channel 16-bit 2개, 2-channel 16-bit 2개, low-power 16-bit 1개, SysTick, RTC, DAC용 basic 16-bit 2개, watchdog 2개
- 대부분 5V tolerant인 fast I/O 최대 84개
- Flash 최대 192KB(dual-bank read-while-write), SRAM 20KB, SRAM/PSRAM/NOR/NAND용 external memory interface
- 12-bit 1.14MSPS ADC 1개, 12-bit DAC 2개, ultra-low-power comparator 2개
- USB FS device, I2C FM+ 3개, USART 4개, SPI 6개(Quad SPI 포함)
- 7-channel DMA
- TRNG, CRC, 96-bit unique ID
- SWD, JTAG, Embedded Trace Macrocell
Zephyr 지원 기능
| Interface | Controller | Driver/Component |
|---|---|---|
| UART | on-chip | serial port-polling; serial port-interrupt |
| PINMUX | on-chip | pinmux |
| I2C | on-chip | i2c |
| SPI | on-chip | spi |
| GPIO | on-chip | gpio |
| RTC | on-chip | counter |
| TRNG | on-chip | true random number generator |
| EEPROM | on-chip | eeprom |
| USB | on-chip | usb |
| FLASH | on-chip | flash |
| LoRa | on-module | sx1276 |
그 밖의 기능은 아직 지원하지 않으며 기본 설정은 boards/st/b_l072z_lrwan1/b_l072z_lrwan1_defconfig입니다.
Connection과 I/O
UART_1 TX/RX : PA9/PA10(Arduino Serial)UART_2 TX/RX : PA2/PA3(ST-Link Virtual COM)SPI1 NSS/SCK/MISO/MOSI : PA15/PB3/PA6/PA7(SX1276)SPI2 NSS/SCK/MISO/MOSI : PB12/PB13/PB14/PB15(Arduino SPI)I2C1 SCL/SDA : PB8/PB9(Arduino I2C)
System clock은 32MHz입니다. U(S)ART 2개 중 console은 UART2, 기본값은 115200 8N1입니다. USB device controller는 하나지만 data line이 MCU에 기본 연결되지 않으므로 USB를 쓰려면 solder bridge SB15와 SB16을 short해야 합니다.
Programming and debugging
Onboard ST-LINK/V2-1은 Zephyr SDK 0.9.2부터 포함된 OpenOCD에서 지원됩니다. USB로 host에 연결하고 serial terminal을 엽니다.
minicom -D /dev/ttyACM0west build -b b_l072z_lrwan1 samples/hello_world
west flashHello World! armDebugging
west build -b b_l072z_lrwan1 samples/hello_world
west debug
참고 자료
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.