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.

TMS570LS1224: Issues sending Simulink model to microcontroller

Part Number: TMS570LS1224
Other Parts Discussed in Thread: HALCOGEN

Hello,

I'm trying to understand how to use Simulink to pass models to the microcontroller. I have the the MATLAB ARM Cortex-R Support for Embedded Coder installed as well. I have ensured that the right versions of CCS and HalCoGen are installed, as well as the DSP library. 

I'm have everything setup, my current issue is the following, when I deploy the model to hardware, there is the following warning,  The model builds successfully, but the board does not respond as it should. I have changed the Endianess of the in the model configuration in simulink to Big Endian but the issue still persists. 

Additionally, the pins allocated in the simulink block do not correspond to the correct GIOB pin on the board. 

I have attached my model for viewing too, please let me know what I can do/fix. This is my first time working with non-arduino microcontroller.

  • Aaditya,

    As per the log, the target device-specific file RM57L8xx.ccxml file is being used for the flash erase/program operation. This does not match the part that you are trying to use, which is the source of the error. Please identify the correct device ccxml file to be used.

    Regards,
    Sunil
  • Hello Sunil,

    Thank you for your reply, I created a target configuration file from CCS v6 for the required microcontroller. Can I just copy and paste the information from one target file to another? Or do I have to re-link it to the new target configuration file?

    Sincerely,
    Aaditya
  • I would suggest modifying the setup to use the correct configuration file. You will need to ensure that every configuration file you need matches the target part that you are using. This package was specifically created for the RM57x parts.

    Regards,
    Sunil
  • Hello Sunil,

    I did what you mentioned, changed the CCXML configuration files in the target to reflect the exact properties of the board, it still doesn't fix the problem. One thing I noticed in the .h files generated by MATLAB/Simulink is that it is not targeting the right device - it targets RM57 instead of TMS570LSxxxx, I'm not sure how to change this, I checked the user guides and tutorials but I can't figure out how to change this.

    Sincerely,
    Aaditya
  • Aaditya,

    You can try following the procedure defined on this page:
    www.mathworks.com/.../develop-a-target.html

    That said, I did find a couple other posts that said that there is only support for little-endian RM4x/5x parts for the Embedded Coder packages.

    Regards,
    Sunil