Skip to main content
Martin Dvoracek
Associate II
February 19, 2018
Question

stm32 MAT-TARGET, ADC injected mode, simulink coder discarded code generated from sfunction

  • February 19, 2018
  • 0 replies
  • 612 views
Posted on February 19, 2018 at 23:50

dear, 

I prepared model in simulink for the STM32. I need ADC working for sampling in injected mode for three channels. Used model is attached. But during model building there is warning that some generated code was discarted see attached file. Can somebody check the model and help me to find what is wrong? IOC file is also attached. 

In case that only one analog channel sampled in injected mode the code is not discarted and sampling is working.

Discarted source code is function that starting sampling so with finaly generated source code the sampling does not work. 

I used nucleo 64 dev board, MATLAB 2017B, mxcube 4.24, system workbench IDE

    This topic has been closed for replies.