2017-06-20 04:55 AM
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
#stm32f051 #stm32mattarget
2017-06-21 08:07 AM
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