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/TMS320C6678: HWI Enable execution check

Part Number: TMS320C6678


Tool/software: Code Composer Studio

Hi all,

I need a little information.

Is it possible to check if, during runtime phase, the Hwi_enable function returns error or not?

In details I need some informations about previous enable/disable state value to check it!

Thanks a lot to everyone.

  • Hi Vittorio,

    Could you share which SDK is this? Which example are you running?

    Best Regards,
    Yordan
  • Hi,
    I'm using PROCESSOR-SDK-RTOS-C667X: RTOS Processor SDK for C667X version 03.02 .
  • I assume you are asking about HWI function return value. If this is not correct please correct me.

    Here is what I suggest -

    Define a global vector and define it as a circular buffer with size of N values, and a pointer that points to the location of the next input.
    (everything is global)

    write code in the HWI function to load the return value into the circular buffer.

    every time the program stops (and I assume you run in CCS) you have access to the last N return values. (The pointer points to the next value so go back and retrieve previous values, the oldest value is the one that the pointer points to)

    Does it make sense to you? If so, close the thread

    Ran