I'm using STM32-MAT/TARGET in Simulink 2014a and STM32CubeMX + KEIL MDK-ARM V5.
My model has custom inputs and outputs, so I have to set/read them before/after the step-function in the main loop.
My problem is, every code i write there gets overridden my simulink code generator, in the whole main.c file.
STM32CubeMX on it's onw does not override user code, only Simulink does.
How can i handle this?