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.

CCS/TMS320F28388D: Unable to view/configure NDK with XGCONF

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Dear TI,

I am trying to add NDK support to the Cortex-M4 on the TMS320F28388D. When I create a new SYS/BIOS project targeting the Cortex-M4 of the TMS320F28388D, I ensure to enable XDCtools, SYS/BIOS, NDK, and NS. Once I create the project, I open my app.cfg that was created with XGCONF. I navigate to the System Overview page, but I am unable to see any modules related to NDK. Am I missing a step?

Here are the versions of the various packages I am using:

XDCtools - 3.60.2.34_core

SYS/BIOS - 6.76.4.02

NS - 2.60.01.06

NDK - 3.61.01.01

Code Composer Studio (CCS) - 9.3.0.00012

Thanks!

Joseph Keene

AMET Inc.

  • I'm looking at the tcpEchoF2838X example from C2000Ware which uses NDK and it doesn't appear to show it in the Systems Overview page either. It looks like it's calling functions directly instead of using the cfg file.

    The ndk_f2838x_3_61_01_01 package doesn't appear to be discoverable by CCS either (or at least not on my machine--did it work for you?). I'll ask around to try to get confirmation, but I suspect that the XGCONF model isn't supported in this release.

    Whitney

  • Hi Whitney,

    Thanks for looking into this for me. I followed the suggestion by ToddMullanix in the post in the following forum post: https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/657309?CCS-MSP432E411Y-NDK-settings-not-available-XGCONF 

    Basically, he detailed how to make changes to the .cfg to configure NDK. This still doesn't show the NDK Module in XGCONF, but I was still able to test the same functionality as the tcpEchoF2838X example provides that you mentioned. 

    I also agree that I could not find that version of NDK through CCS. I actually found it through another forum post by the user Sudharsanan: https://e2e.ti.com/support/microcontrollers/c2000/f/171/p/825398/3052971?tisearch=e2e-sitesearch&keymatch=TMS320F28388D%25252525252525252520NDK#3052971 

    Will a later version support configuring the NDK module through XGCONF? Also, it appears that I am unable to create a socket to capture raw packets on a specified port. Is that supported not supported on the NDK? Here is my socket creation command:

    int server;
    int protocol = 0x88A4; // Ethercat packet type
    ...
    server = socket(AF_PACKET, SOCK_RAW, htons(protocol));
    

    I've tried debugging the socket command by using fdError(), but it is returning 0 for me. Any idea what I'm doing wrong?

    Thanks!

    Joseph Keene

  • At the moment we don't have any plans to support XGCONF in a future release.

    Does the tcpEcho example work as expected for you? I've asked a colleague to look into your question about socket()--they should get back to you soon.

    Whitney

  • Thank you for the update about XGCONF. I'll just use the version of .cfg created by following the instructions in the above-mentioned forum post.

    The tcpEcho example did work for me as expected. I believe my issue with the socket functions is that the sockets implementation on the NS doesn't include the full functionality, as per the NS User Guide. According to that, it only supports AF_INET, not AF_PACKET. From what I understand from the NS and NDK User Guide, I will probably have to use the AF_RAWETH and SOCK_RAWETH to do what I want to do.

    Thank you for your help,

    Joseph Keene