TMS320F28379D problem loading Code

조회 수: 5 (최근 30일)
Rida Adardak
Rida Adardak 2020년 8월 7일
댓글: G K NAVEEN KUMAR 2023년 1월 10일
Hello,
I have some troubles when i am trying to load the C code generated from Simulink model to Delfino™ TMS320F28379D.
You will find attached what I was able to achieve ; configurations and Simulink model.
The idea is turning on the LED2 (GPIO31) and LED3 (GPIO34).
What do you thing ? it's true ?
Please I need your help !
Thank you all.

답변 (2개)

Aditya Padmanabha
Aditya Padmanabha 2021년 10월 18일
Hi rida,
Please follow the shipping example which explains how to do a simple model to blink a LED on C2000 hardware board. Getting Started with Embedded Coder Support Package for Texas Instruments C2000 Processors - MATLAB & Simulink (mathworks.com)
Thanks,
Aditya
  댓글 수: 1
G K NAVEEN KUMAR
G K NAVEEN KUMAR 2023년 1월 10일
Error: File: C:\Program Files\MATLAB\R2022b\rtw\c\tlc\public_api\utils_api.tlc Line: 473 Column: 10 %exit directive: Simulink Coder Fatal in block: "BridgelessBoostPFCwithAPD/inverter calculate2", block type "S-Function": MFile S-functions without a corresponding TLC file are not supported. You can inline your S-function (fpga_model) by creating a TLC file for it. You can also remap your S-function to C by creating a corresponding C Mex source file and a fpga_model.tlc file in the same directory as the MFile S-function which contains (on the first line): %% CallAsCMexLevel1 or %% CallAsCMexLevel2

댓글을 달려면 로그인하십시오.


Sarva Ruvinigya Somanshu
Sarva Ruvinigya Somanshu 2022년 12월 4일
Hey,
I assumed that you have done this step also -
  1. First insure that you have installed required hardware support add-on packege
  2. Select hardware under configuration Parameters -> hardware implimentation -> hardware board
  3. Now after selecting correct hardware go to -> target hardware resources -> external mode -> serial port in matlab preferances (check connect COM)

카테고리

Help CenterFile Exchange에서 Embedded Coder에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by