I am trying to use the STM32-MAT but after getting it to run on one of the examples I observed what I think to be a limitation:
if in CubeMX you configure a timer, i.e. TIM3 as Hall sensor input, then the pins connected to the hall inputs are in the AF mode. This means that from the Simulink you won't be able to read them because it is expecting to find them marked in the .ioc file as Input not AF.
Is there any nice solution; so far the only dirty hack that I found is to manually edit the .ioc and do something like:
I didn't generate the code yet because I get some other errors but this hack is not very good anyway because each time I load the .ioc in the cube it removes one of the 2 signal properties from the pins.