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/TMS320C6748: Ti RTOS HWI creation

Part Number: TMS320C6748

Tool/software: Code Composer Studio

Hi 

I have CCS v6 installed on PC  and have been using it for almost 4 years for my (commercial) projects using CSL.

Now I am experimenting with TI RTOS to learn and maybe possibly develop projects in future. 

I am going through the TI_RTOS_Kernel_Workshop_Student_Guide_rev4.00 training document which is based on CCS v6. 

I did a lot reading on  XDC tools and TI RTOS.

I created a simple project RTSC project with XDCtools ver 3.320.0.06_core and Sys/Bios version 6.46.6.00.

I want to create a HWI thread as explained in the training document. I added HWI service from Sys/Bios Scheduling lists. 

I am trying to add an instance of HWI thread. In the HWI Module settings, I selected Add the portable Hwi management module to my configuration. 

I am trying to fill Handle, Isr function,  Interrupt number in the Instance Settings. I fill these fields with the values HWI_TIMER0, legToggleHwi, 5 respectively.

I save the configuration and after saving these fields revert back to N/A, null, null. 

So I cannot configure the HWI instance at all. 

I also get the error : XDC runtime error: too many arguments app.cfg /blink_C6000_BIOS_2 Configuration Validation XDCTools Configuration Marker

What could be the reason for this. 

Best regards

Izzet

 

  • Hi Izzet,

    Can you include a snapshot of what you are trying to add? Also, can you attach the whole .cfg file also? 

    Todd

  • Hi Todd

    When I opened the project again, I see that .cfg file is updated. But I do not see that on the outline view. 

    Thanks

    Izzet2084.app.cfg

  • Hi Izzet,

    Yea, the .cfg looks like it was updated. I see the following near the bottom

    var hwi0Params = new Hwi.Params();
    hwi0Params.instance.name = "hwi0";
    Program.global.hwi0 = Hwi.create(5, "&ledToggleHwi", hwi0Params);

    I tried opening the .cfg in a newer CCS and it looks fine. I'll ping someone to see if there are any known issues with the older CCS/XDCtools. For now, can you just edit the .cfg as a text file (right-click in CCS and open as a text file). Starting in CCS 8.? we've actually changed the default in CCS to open the .cfg as a text file.

    Does the Hwi work as expected?

    Todd

  • Hi Todd

    I modified  eventId as  hwi0Params.eventId = 64; manually. Then it builds and works. 

    The main issue to understand is that GUI does not seem to work for configuring thread instance options. 

    It looks like a kind of mismatch  between XDC tools and CCSv6. 

    This is good enough for me. 

    But I think I need to switch CCSv8.

    Best regards

    Izzet