cancel
Showing results for 
Search instead for 
Did you mean: 

Input port of ADC block not availible while using STM32-MAT/TARGET

Sam Q.
Associate III
Posted on November 02, 2017 at 17:16

Hi everyone,

I have been just getting started with the model-based design using MATLAB/Simulink with the Target Support Package for my STM32F407VGTx Discovery Board.

But with the configuration for the MCU using STM32CubeMX done, there is no input port in the ADC_Read block availible.

In my STM32CubeMX Project (in the attachment, Version 4.22.1) I actived three channels of ADC1 (IN0, IN1 and IN2). Principally, these three channels must be availible in my Simulink project. However, as shown below, CH0, CH1 and CH2 couldn't be checked.

0690X00000608n1QAA.png

Is there anyone who can help me to solve this problem?

Thank you!

#adc #cubemx #simulink #stm32-mat/target-matlab
1 ACCEPTED SOLUTION

Accepted Solutions
Sam Q.
Associate III
Posted on November 02, 2017 at 17:26

Hi everyone,

I'm sorry! These input channels are now availible!

My problem is solved, after I correctly finished configurating code generation option in my Simulink project.

So, DO NOT forget to go through Model Configuration Parameters AT FIRST!

Thank you all the same!

View solution in original post

1 REPLY 1
Sam Q.
Associate III
Posted on November 02, 2017 at 17:26

Hi everyone,

I'm sorry! These input channels are now availible!

My problem is solved, after I correctly finished configurating code generation option in my Simulink project.

So, DO NOT forget to go through Model Configuration Parameters AT FIRST!

Thank you all the same!