AnsweredAssumed Answered

code generate base on model by simulink and stm32cubeMX,the use of ADC block in stm32 adapter package.

Question asked by mingming.xu on Apr 28, 2015
Latest reply on Oct 6, 2015 by 68516
Hello,there!
I want to generate code base on model by simulink and stm32cubeMX.I install the "target support package-stm32 adapter" in simulink and stm32cubeMX version 4.70 in computer.
I set a model in simulink and drag a MCU config block in it,then I select the .ioc file which was generated in stm32cubeMX.I chose the stm32f0803 discovery board,and configue the ADC peripheral in stm32cubeMX. 
11.png
But when I drag the ADC block into the model,the pop-up box appear,which writes "!!selected ADC has not been configured!!".but i have configured the ADC in stm32cubeMx.How can i do now?hope for help,TY!

Outcomes