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.

building error using matlab coder



Hi, 

I have F28377D DSP Chip and I am trying to program it by Matlab. But when I built the code I got this error: 

*** Starting debug session...
SEVERE: Could not open session. No matching devices found.
*** Cannot create a valid debug session for Board/CPU=*/C28xx_CPU1.
Make sure this matches only one board and one CPU.
Exiting...

Can you please help me with this issue.

Regards

  • MathWorks Support for TI C2000 is commonly achieved via our product Embedded Coder.  Do you have this product and the associated (free) support package Embedded Coder Support Package for Texas Instruments C2000 Processors?

    For immediate assistance you can always contact MathWorks Technical Support.

    -Brian

  • Hi,

    Yes I have all the products. 

    Regards

  • Hello,

    I have the same problem. Have figured out how to solve this problem?

    Regards,
    Javy
  • Hi,

    I had the same problem but I solved it recently.

    In my case, the build error appeared with CCS6.1.3. I replaced the CCS6.1.3 with CCS6.1.2, then the build error was gone.

    I hope this can help you.

    Chhers,

    Javy

  • you could also try the following way

    Use custom ccxml file in Simulink:
    1. Open configuration parameters of the model.
    2. Go to Hardware Implementation tab
    3. Choose the Hardware Board as 'TI Delfino F2837xD' (and wait for some time for the other settings to pop up)
    4. Now in the Build Options pane, you can choose a custom CCS hardware configuration file.
    5. Please Browse and choose the F28377D_from_CCS.ccxml that you just created.
    6. Also please change the Build Action to 'Build, load and run'

    I have tested this, it did work

    this method is obtained from MATHWORKS hardware support service

    using this way you do not need to replace CCS with an elder version

    Javy
  • Dear Zhang,
    Thank you very much for your reply,
    I just tried what you mentioned above, and it seems the old error gone but unfortunately I have new one, see this please:

    "The following error occurred during deployment to your hardware board:
    Unable to load a message catalog 'TIC2000:codegen'. Please check the file location and format."

    Thanks
  • Hello,

    To be honest, I have no idea about this. But I would suggest you to update the hardware support package and have a look.

    Javy

  • Hello all,

    Looks like MathWorks R2016a only works with CCS up thru 6.1.2, and isn't yet working for CCS 6.1.3. We are shipping a CCXML file created with an older version of CCS, so 6.1.3 wont work - and this is why the CCXML re-creation step noted by Javy will work. We will fix this in an upcoming release.

    Thanks,
    -Brian
  • Dear Brian,

    When the next release come? Actually, I have a deadline to complete programming of my DSP and I am still haveing this issue. Any suggestions?

    Thanks

  • Hi,

    MathWorks doesn't provide an exact release date, but Release R2016b will likely be available to customers in September 2016.

    -Brian

  • Hi,

    Finally, I have the connection between matlab and CCSV6.1.2, to program my F28377D micro-controller, the generated PWMs it seems working very well, however, when I deployed the code into the DSP, I got the following error: 

    1-

    In CCS I got this message :

    "C28xx_CPU1: Failed to remove the debug state from the target before disconnecting.  There may still be breakpoint op-codes embedded in program memory.  It is recommended that you reset the emulator before you connect and reload your program before you continue debugging"

    ** To solve this,  I need to reconnect my CCS with DSP and then download the code to the DSP.

    In Matlab I got this:

    *** Starting debug session...
    SEVERE: IcePick_C_0: Error connecting to the target: (Error -151 @ 0x0) One of the FTDI driver functions used during the connect returned bad status or an error. The cause may be one or more of: invalid XDS100 serial number, blank XDS100 EEPROM, missing FTDI drivers, faulty USB cable. Use the xds100serial command-line utility in the 'common/uscif' folder to verify the XDS100 can be located. (Emulation package 6.0.14.5)

    SEVERE: emulation failure occurred
    SEVERE: Error connecting to the target: emulation failure occurred
    *** Cannot create a valid debug session for Board/CPU=*/C28xx_CPU1.
    Make sure this matches only one board and one CPU.

    2- In the hardware configuration window, when I check boot from the flash, the generated code is not executable, I mean there is no out file to load into the DSP, in the generated files. 

    3- I tried to use the external mode, but I got this error when I run the mode:

    "Failed to generate all binary outputs"

    ** In external mode, can I setup the  SCI to be used with SCI-B not SCI-A?

    Please if anyone help with these issues

    Many Thanks

  • Hi,

    This is too complex to address via forums. Best I can tell, there might be an issue with the custom CCXML file.

    Please contact MathWorks Technical Support for assistance.  You will need to supply a copy of your model for Tech Support to analyze.

    Thanks,

    -Brian

  • Dear Brian,
    Thanks for your reply,
    I noticed that the eQEPs and DACs and other hardware resources are also not available in the embedded coder target for F28377D chip!!! so how I can program this resources then?
    Regards
  • eQEP and DAC blocks are under active development. I expect both blocks to be released in Release R2016b, which will become available to customers in Fall 2016.

    -b