AnsweredAssumed Answered

STM32-MAT/TARGET user code in main.c gets overridden

Question asked by hieber.jan on Oct 1, 2015
Latest reply on Nov 6, 2015 by reynaud.pascal

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?

Outcomes