cancel
Showing results for 
Search instead for 
Did you mean: 

Is stm32f051 supported by stm32mattarget, since I have issues with the timers and also ADC in simulink?

Reza Hosseinzadeh
Associate II
Posted on June 20, 2017 at 13:55

Hello,

WhenI am adding an ADC block to my model  I can not set the channel which the MCU should read from and with timer I get this error Can not get APB timer frequency. I have already configured the MCU in STM CUBE MX and loaded the ''.ioc'' file to the configuration  block in Simulink, so for example with GPIO blocks I don t have any problem, but when it comes to timers and ADC these configurations are not transferred to the Simulink and it gives an error of ''no configuration found for ADC or Can not get APB timer frequency for timers''. The configuration file is attached.

I am using

STM32MATTARGET 4.4.1, MATLAB 2016 b, STM CUBE MX 4.21.0

    0690X00000607QPQAY.png 0690X00000607NlQAI.png

#stm32f051 #stm32mattarget
1 REPLY 1
Posted on June 21, 2017 at 17:07

Hello Reza,

today simulink ADC driver is based on ranking .... and there is no ranking for F0/L0 families.

So, ADC is not supported for F0/L0. (for the moment)

Regarding Timer,  I deal with STM32CubeMx team to point out why we can't get APBx connected to TIMER1.

This will be fixed for next STM32CubeMx version or I will find a work around.

Best regards

Pascal