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: IQ instruction terminates in Abort

Part Number: TMS320F28388D

I've encountering a problem porting a part of program with IQ Math. This code is part of a library. All IQ instructions correctly works, but when i run this line:

struct {
dbl64 Re,Im;
} dbgAcq;

struct stc_cpx_fmt {
_iq Re;
_iq Im;
};

struct stc_cpx_fmt iqVal;

typedef long double        dbl64;      // double (64 bit) to long double (64 bit)

dbgAcq.Re = (dbl64)_IQtoF(iqVal.Re);

I get an ITRAP0 and then an Abort loop.

This is macro:

Stack situation at function call:

When running the macro, it goes in ITRAP0 at this line:

Someone have tips to find the problem? Other I've several IQ operation but just on this one I've this problem.