I am using Simulink Embedded Coder to program my TI LAUNCHXL-F28379D C2000 microcontroller. My code consists of 3 main sections: sensing (echolocation), processing (filtering etc.), and action (motor control). I have tested all of these codes individually before I combined them all together. Once they are merged in the same model I realized that the code started running slower. More interestingly, the mode code I add, the slower it gets. I tried to open the code as a CCS (Code Composer Studio) project and programmed the robot using CCS but that didn't help anything. I am using MATLAB 2017b. The attached .txt file contains the output of the ver command.
Is this a known issue? How can I ameliorate this issue?