cancel
Showing results for 
Search instead for 
Did you mean: 

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

254286705
Associate
Posted on April 28, 2015 at 13:52

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. 

0690X00000605gLQAQ.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!

#code-generate #stm32cube #simulink
1 REPLY 1
Posted on October 06, 2015 at 19:04

Hi mingming.xu,

Upgrade STM32-MAT/TARGET and STM32CubeMx with latest versions.

-Shahrzad-