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.

TMS320F28388D: About multicore sysconfig

Part Number: TMS320F28388D
Other Parts Discussed in Thread: SYSCONFIG, C2000WARE

Hello.

I am considering using the multi-core sysconfig provided with C2000ware 4.03.00, but GPIO cannot be used for CPU2 items.

The software version used is CCS11.2.0, C2000WARE 4.03.00,sysconfig 1.15.00.

thank you.

  • Hi,

    You have older version of CCS. Please install CCS version 12.2 . Please check the release note.

    https://software-dl.ti.com/C2000/c2000_apps_public_sw/c2000ware/4_03_00_00/release_notes.html 

    Regards, Santosh

  • I checked the multi-core sysconfig in the latest version of CCS earlier, but I couldn't find any items that could use GPIO on CPU2.


    Are there any other steps required?

    Thankyou.

  • Hi,

    I am assigning the thread to multicore sysconfig expert. Please expect response by Monday.

    Regards, Santosh

  • Hi Ryo,

    The GPIO module is only available on CPU1, but it can be used to configure GPIOs for CPU2. The Core Select option, circled below, gives you the option to assign ownership of the configured GPIO to any CPU. Is there something else you want to do? 

    Best Regards,

    Ben Collier

  • Hello Benjamin.

    What I want to do is to set the GPIO interrupt setting on CPU2 and assign it to the PIE channel.
    Next, it is to be able to control the output of GPIO with cpu2.

    So, the question is, can the items that CPU1 performed core selection on CPU2 be used in the code of CPU2?

    Also, I'm thinking of using FATFS, which is installed as a function, on CPU2, but how should I set the GPIO when adding it?

    Best Regards,

    Ryo Tsuchiya

  • Hi Ryo,

    If you import the led_ex2_blinky_sysconfig example from C2000Ware/driverlib/f2838x/examples/c28x_dual/led, you can see an example of how to control the output of a GPIO with CPU2.

    First the GPIO is assigned to CPU2 with the GPIO module on CPU1:

    Then you are able to write code in CPU2's project to use the GPIO. Just make sure that the board_init() function on CPU1 runs before the code on CPU2 that uses the gpio. 

    Unfortunately, I do not think Sysconfig has a way to register a GPIO interrupt on CPU2, but I will keep this in mind as an addition for future versions.

    For now, I think you could enable the interrupt on CPU1 with Sysconfig to generate the right code. Then copy+paste the code from board.c and board.h to your main.c file for CPU2. Then remove the Sysconfig settings to generate the interrupt on CPU1, and make sure to assign that GPIO to CPU2. Essentially, the code is the same for registering an interrupt on CPU1 or CPU2 once the gpio ownership is assigned.

    Please let me know if this answers your question.

    Best Regards,

    Ben Collier