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: Use IPC interrupt on SYS/BIOS

Part Number: TMS320F28388D
Other Parts Discussed in Thread: SYSBIOS

Hello. i'm a beginner of TMS320F28388D , trying to run both core with SYS/BIOS.

Here's the version of program that i'm using

- CCS 10.1.1

C2000Ware 3.03.00

- Complier V20.2.1.LTS

- Xdc tool 3.61.02.27

- BIOS 6.83.00.18d

---------------------------------------------------------------------------------------------------------------

i tried to share some data ( based on CPU1 ) with CPU2 , so i set IPC module. and added IPC0 interrupt on SYS/BIOS.

but IPC0 interrupt 's vector ID number is larger than the number of vector ID that SYS/BIOS supports.

(i checked it on C28x Hardware Interrupt Manager :  software-dl.ti.com/.../Hwi.html ) 

how do i expand vector ID table ? 

** i just run epwm2_isr on CPU2 ( base initalization of ePWM2 module is in CPU1 ) , is there other ways to do that?

Regards,

Kim

  • This is a known issue in SYS/BIOS. In /packages/ti/sysbios/family/c28/Hwi.xs

        if ((Program.cpu.deviceName.match(/F2807/)) ||
            (Program.cpu.deviceName.match(/F28004/)) ||
            (Program.cpu.deviceName.match(/F2837/))) {
            Hwi.NUM_INTERRUPTS_PIE = 192;
            Hwi.NUM_INTERRUPTS_ALL = Hwi.NUM_INTERRUPTS + Hwi.NUM_INTERRUPTS_PIE;
        }

    You'll need to add a line for "(Program.cpu.deviceName.match(/F2838/))"

    Whitney

  • Thank you again, Whitney !

    Regards,

    KIm

  • thanks for replying. i found hwi.xs file and could add a line that you mentioned.

    but i think there are 2 ways to add the device match line .

    1. add Hwi.xs file directly into my project , then modify .xs file ( i tried this way, but i didn't work )

    2.  modify Hwi.xs file that already exsists somewhere on my project.

    ( because there is a link on "includes" that "C:ti\bios 6_83_00_18\packages" ( same path with Hwi.xs ) .  i think Hwi.xs file is already in my project , but i can't find it on Project Explorer )

    which one is correct? 

    Ki,

  • Right, you don't need to add the file to your project. It's already being included through the build of the SYS/BIOS lib. Apparently CCS only shows .h and .c files in the "Includes" section of the Project Explorer, so you'll just have to find it in the file system explorer and open and edit it that way instead.

    Whitney

  • i find Hwi.xs file in the file system explorer and edit it.

    Now,  I can manage Hwi that has a vector ID number over 127

    Thanks!

    Regards,

    Kim