Hi
I have encountered using the debugger the error message, "mi_cmd_var_create: unable to create variable object", for the first time.
The function float64_to_int32() converts an IEEE double value back to an integer and behaves properly with the expected result if run without any breakpoint within the code of the function.
The double is defined as:
typedef struct {
unsigned int high, low;
} float64;
The start of the function is:
int32 float64_to_int32( float64 a )
{
flag aSign;
int16 aExp, shiftCount;
bits32 aSig0, aSig1, absZ, aSigExtra;
int32 z;
.......................................................
return z;
}
If I put a breakpoint anywhere within the function body (or in the line that calls the function), I get the above error message in a continuous loop until the kill button is pressed.
Yet the function works quite normally, produces the expected answer when no breakpoint is invoked.
Any help would be appreciated.
John.
mi_cmd_var_create: unable to create variable object
-
- Experienced Member
- Posts: 93
- Joined: Fri Dec 11, 2009 1:39 pm
-
- Member++
- Posts: 19
- Joined: Fri Dec 11, 2009 11:21 am
Hi John,
Could you submit a support ticket on the XMOS site with the full source code (or a small example so we can reproduce this), thanks.
Mike
Could you submit a support ticket on the XMOS site with the full source code (or a small example so we can reproduce this), thanks.
Mike
-
- Experienced Member
- Posts: 93
- Joined: Fri Dec 11, 2009 1:39 pm
Hi Mike,
Sure - I will cut the code down to the offending section.
John.
Sure - I will cut the code down to the offending section.
John.