This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Matlab/Simulink Embedded Coder code generation and uploading problem

Other Parts Discussed in Thread: CONTROLSUITE

Hello,

I am using Matlab 2013a, CCSv5  5.5.0.00077, controlSuite v3.2.3.

I followed tutorials from TI and Matworks esp this one: http://www.youtube.com/watch?v=AY4GzMLl30A

I succeed configuring Simulink, etc, generating .out file and programming seems to work (both the approach that uses CCS and the approach presented here: http://www.mathworks.com/matlabcentral/answers/98075 - programming with just a button-click at simulink model).

My application should blink with gpio33 (no input). Insteadthe board behaves like it is seen on the movie:

http://www.youtube.com/watch?v=V2EmDO8Au40

http://www.youtube.com/watch?v=56pVh2JyBfA

My program is intended just to blink a single LED. Instead it is blinking with multiple ones and changes behaviour after touching pin inputs. No the capacitive touch input. After touching or getting fingers close the GPIO, or even VCC/GND pins, LED's start to blink randomly.

My questions are:

1 What is happening here?

2 Could anybody tell me what is the proper way of programming the flash memory with Matlab or CCS with external file? When I load some Launchpad C2000 examples to CCSv5, hit debug button, they download to target and work well.

Thank you very much for your attention.

  • Hi,

    There seems like an issue with the matlab configuration file. Please check the same carefully. Secondly, also check with the kit in the video and yours are same or not. This can also trigger faults. Youtube is banned here so won't be able to give you detailed solution.

    Regards,

    Gautam

  • Hello, thank you for your answer. I tried several different configurations, none of them seem to work properly.

    Could anybody provide me with a guidance of how to setup Matlab/Simulink for TI's code generation? I was not able to find such informations in documents.

    Thank you in the interim.

  • Hey,

     In your Simulink model, you turn off the toggle for the particular digital output module . Then the weird behaviour when you touch with fingers and so on , there will be no changes. For a change to happen it requires particular Vcc or Gnd conncection.

    Refer your experimental docking station pdf to get the right led functioning .

    Regards,

    Suresh

     

  • Hi,

    I become really glad when I found someone who have menaged to configure simulink and generate .out file. I have not managed. Can u help me :)

    I have added this reply 3 pictures. I cannot see the picture 3's highlighted segment. I have chanced the file locations like in picture 1 and picture 2 , but it does not work. I have CCs v5 and matlab 2013b.

    Thank you for your consideration.

    Best Regards