建模
准备模型以与 STMicroelectronics Discovery 板进行硬件连接,添加模块以支持硬件协议
模块
GPIO Read | 读取 GPIO 引脚状态 |
GPIO Write | 设置 GPIO 引脚状态 |
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. |
系统核心
Audio Input | Read audio sample from audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board |
Analog Input | Measure voltage of analog input pin |
Digital Read | Read logical state of digital input pin |
Digital Write | 设置数字输出引脚的逻辑状态 |
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 |
External Interrupt | Trigger the downstream function-call subsystem from an Interrupt Service Routine (自 R2021a 起) |
多媒体
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 |
通信
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 |
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 |
Modbus RS485 Client Read | Client device reads data from server device register(s) over RS485 network (自 R2021b 起) |
Modbus RS485 Client Write | Client device writes data to server device register(s) over RS485 network (自 R2021b 起) |
Modbus RS485 Server Write | Server device writes data to server device register over RS485 network (自 R2021b 起) |
Modbus RS485 Server Read | Server device reads data from the server device register over RS485 network (自 R2021b 起) |
网络
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 |
系统核心
Audio Input | Read audio sample from audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board |
Analog Input | Measure voltage of analog input pin |
Digital Read | Read logical state of digital input pin |
Digital Write | 设置数字输出引脚的逻辑状态 |
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 |
External Interrupt | Trigger the downstream function-call subsystem from an Interrupt Service Routine (自 R2021a 起) |
多媒体
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 |
通信
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 |
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 |
Modbus RS485 Client Read | Client device reads data from server device register(s) over RS485 network (自 R2021b 起) |
Modbus RS485 Client Write | Client device writes data to server device register(s) over RS485 network (自 R2021b 起) |
Modbus RS485 Server Write | Server device writes data to server device register over RS485 network (自 R2021b 起) |
Modbus RS485 Server Read | Server device reads data from the server device register over RS485 network (自 R2021b 起) |
网络
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 |
物联网
WiFi TCP Receive | Receive TCP/IP packets from another TCP/IP host on internet network (自 R2021a 起) |
WiFi TCP Send | Send TCP/IP packets to another TCP/IP host on internet network (自 R2021a 起) |
ThingSpeak Read | Read data stored in ThingSpeak channel (自 R2021a 起) |
ThingSpeak Write | Publish data to Internet of Things using ThingSpeak (自 R2021a 起) |
传感器
HTS221 Humidity Sensor | Measure relative humidity and temperature from HTS221 sensor (自 R2021b 起) |
LIS3MDL Magnetometer Sensor | Measure magnetic field strength and temperature from LIS3MDL Magnetometer sensor (自 R2021b 起) |
LPS22HB Pressure Sensor | Measure barometric air pressure and temperature from LPS22HB sensor (自 R2021b 起) |
LSM6DSL IMU Sensor | Measure linear acceleration, angular rate, and temperature from LSM6DSL sensor (自 R2021b 起) |
实用工具模块
Byte Pack | 将输入信号转换为 uint8 向量 |
Byte Unpack | 将 uint8 向量转换为输入信号 |
Byte Reversal | 反转输入字中的字节顺序 |
Memory Copy | Copy data from and to memory section |
模型设置
主题
- 打开 Embedded Coder Support Package for STMicroelectronics STM32 Processors 的模块库
打开 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.
精选示例
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 to control the push-button and the LED components by using the Embedded Coder® Support Package for STMicroelectronics® STM32 Processors
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® STM32F4xx processor 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 Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- 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)