Modeling
Prepare the model for hardware connection using STMicroelectronics Discovery boards, add blocks to support hardware protocols
Blocks
STMicroelectronics STM32F4-Discovery Board Blocks
GPIO Read | Read GPIO pin status |
GPIO Write | Set GPIO pin status |
Analog to Digital Converter | Convert analog signal on ADC input pin to digital signal |
Audio Out | Send processed audio samples to audio devices |
Mic In | Read audio sample from MEMS microphone available on the STMicroelectronics STM32F4–Discovery board |
Hardware Interrupt | Trigger the downstream function-call subsystem from an interrupt service routine. |
STMicroelectronics STM32F746G/STM32F769I-Discovery Board Blocks
Analog Input | Measure voltage of analog input pin |
Digital Read | Read logical state of digital input pin |
Digital Write | Set logical state of digital output pin |
I2C Controller Read | Read data from I2C Peripheral devices or I2C Peripheral devices register |
I2C Controller Write | Write data to I2C peripheral devices or I2C peripheral devices register |
PWM Output | Generate square wave on the specified output pin |
SCI Read | Read N-by-1 array of data on UART |
SCI Write | Send N-by-1 array of data to UART |
SPI Controller Transfer | Write data to and read data from SPI peripheral devices |
SPI Register Read | Read data from SPI peripheral devices register |
SPI Register Write | Write data to registers of SPI peripheral devices |
Audio Input | Read audio sample from audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board |
Audio Output | Send processed audio samples to audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board |
TCP Receive | Receive data over TCP/IP network from remote host |
TCP Send | Send data over TCP/IP network to remote host |
UDP Receive | Receive UDP packets from UDP host |
UDP Send | Send UDP packets to UDP host |
External Interrupt | Trigger the downstream function-call subsystem from an Interrupt Service Routine (Since R2021a) |
Modbus RS485 Client Read | Client device reads data from server device register(s) over RS485 network (Since R2021b) |
Modbus RS485 Client Write | Client device writes data to server device register(s) over RS485 network (Since R2021b) |
Modbus RS485 Server Write | Server device writes data to server device register over RS485 network (Since R2021b) |
Modbus RS485 Server Read | Server device reads data from the server device register over RS485 network (Since R2021b) |
STMicroelectronics STM32L475VG-Discovery (B-L475E-IOT01A) Board Blocks
Analog Input | Measure voltage of analog input pin |
Digital Read | Read logical state of digital input pin |
Digital Write | Set logical state of digital output pin |
I2C Controller Read | Read data from I2C Peripheral devices or I2C Peripheral devices register |
I2C Controller Write | Write data to I2C peripheral devices or I2C peripheral devices register |
PWM Output | Generate square wave on the specified output pin |
SCI Read | Read N-by-1 array of data on UART |
SCI Write | Send N-by-1 array of data to UART |
SPI Controller Transfer | Write data to and read data from SPI peripheral devices |
SPI Register Read | Read data from SPI peripheral devices register |
SPI Register Write | Write data to registers of SPI peripheral devices |
External Interrupt | Trigger the downstream function-call subsystem from an Interrupt Service Routine (Since R2021a) |
WiFi TCP Receive | Receive TCP/IP packets from another TCP/IP host on internet network (Since R2021a) |
WiFi TCP Send | Send TCP/IP packets to another TCP/IP host on internet network (Since R2021a) |
ThingSpeak Read | Read data stored in ThingSpeak channel (Since R2021a) |
ThingSpeak Write | Publish data to Internet of Things using ThingSpeak (Since R2021a) |
Modbus RS485 Client Read | Client device reads data from server device register(s) over RS485 network (Since R2021b) |
Modbus RS485 Client Write | Client device writes data to server device register(s) over RS485 network (Since R2021b) |
Modbus RS485 Server Read | Server device reads data from the server device register over RS485 network (Since R2021b) |
Modbus RS485 Server Write | Server device writes data to server device register over RS485 network (Since R2021b) |
HTS221 Humidity Sensor | Measure relative humidity and temperature from HTS221 sensor (Since R2021b) |
LIS3MDL Magnetometer Sensor | Measure magnetic field strength and temperature from LIS3MDL Magnetometer sensor (Since R2021b) |
LPS22HB Pressure Sensor | Measure barometric air pressure and temperature from LPS22HB sensor (Since R2021b) |
LSM6DSL IMU Sensor | Measure linear acceleration, angular rate, and temperature from LSM6DSL sensor (Since R2021b) |
Utilities Blocks
Byte Pack | Convert input signals to uint8 vector |
Byte Unpack | Convert uint8 vector to input signals |
Byte Reversal | Reverse order of bytes in input word |
Memory Copy | Copy data from and to memory section |
Model Settings
Topics
- Open Block Library for Embedded Coder Support Package for STMicroelectronics STM32 Processors
Open Block Library Embedded Coder® Support Package for STMicroelectronics® STM32 Processors.
- Configure Network Settings for STMicroelectronics Discovery Boards Ethernet Resource
Configure network settings for STMicroelectronics Discovery Boards Ethernet resource.
- Log Signals on SD Card
Log signals from Simulink® models on an SD card mounted on the target hardware.
- Usage of Alternate Pin Names
Accessing multiple hardware peripherals connected to the same pin using alternate pin names.
- Set Up and Configure Armclang Compiler Toolchain for Code Generation
Set up and configure Armclang compiler toolchain for code generation.
Featured Examples
Getting Started with Embedded Coder Support Package for STMicroelectronics Discovery Boards
Demonstrates how to use the Embedded Coder® Support Package for STMicroelectronics® STM32 Processors to run a Simulink® model on an STMicroelectronics STM32F4-Discovery, STM32F746G-Discovery, or STM32F769I-Discovery board.
Code Optimization Using CMSIS DSP Library
Use code replacement libraries for ARM® Cortex®-M processors to generate optimized code for the STMicroelectronics® STM32F4-Discovery board using Embedded Coder® Support Package for STMicroelectronics STM32 Processors.
Push Button and LED
Use the GPIO blocks in the STMicroelectronics® STM32F4-Discovery library to control the push-button and the LED's on the STMicroelectronics® STM32F4-Discovery board.
Parametric Audio Equalizer for STM32 Discovery Boards
Model a three band parametric equalizer algorithm and run it on the ARM® Cortex®-M based STMicroelectronics® STM32 Discovery boards using Embedded Coder® Support Package for STMicroelectronics STM32 Processors.
G.729 Voice Activity Detection for STM32 Processor Based Board
Model the ITU-T G.729 Voice Activity Detector (VAD) algorithm and run it on the ARM® Cortex®-M based STMicroelectronics® STM32 boards using Embedded Coder® Support Package for STMicroelectronics STM32 Processors.
Asynchronous Scheduling for STM32F4-Discovery Board
Model asynchronous scheduling using the Hardware Interrupt block for the STMicroelectronics® STM32F4-Discovery board using Asynchronous Scheduling for STM32F4-Discovery Board using Embedded Coder® Support Package for STMicroelectronics STM32 Processors.
Exchanging Ethernet Data with STM32F746G Discovery Board
Use Embedded Coder® Support Package for STMicroelectronics® STM32 Processors to run on the STM32F746G Discovery Board to send and receive the UDP and TCP messages.
Read Data from I2C-Based Sensors on STM32L475VG Discovery Board
Use the Embedded Coder® Support Package for STMicroelectronics® STM32 Processors to configure and read data from these sensors on the STM32L475VG Discovery (B-L475E-IOT01A) board:
MODBUS RS485 Communication Between Client and Server Devices Using STMicroelectronics Discovery Board
Use the Embedded Coder® Support Package for STMicroelectronics® STM32 Processors to implement a MODBUS® RS485 asynchronous, serial communication between MODBUS client and server devices. The example also shows the four modes of operation: Client Read, Client Write, Server Read, and Server Write.
MATLAB-Befehl
Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:
Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)