Failed to execute MI command:

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Failed to execute MI command:

Jump to solution
12,232 Views
kmh48301
Contributor IV

Hi.

I am using s32k144.

 

I need to use static ram buffer.

 

So I called global array.

 

uint8_t array[20][128]; //example

 

and I tried to check with debugging

 

when i tried to see the value of elements.

this came.

 

====

Multiple errors reported.

1) Failed to execute MI command:
-var-create - * *(((SlotBuf[0]).FramedData)+0)@100
Error message from debugger back end:
evaluation of this expression requires the program to have a function "malloc".

2) Unable to create variable object

3) Failed to execute MI command:
-data-evaluate-expression *(((SlotBuf[0]).FramedData)+0)@100
Error message from debugger back end:
evaluation of this expression requires the program to have a function "malloc".

4) Failed to execute MI command:
-var-create - * *(((SlotBuf[0]).FramedData)+0)@100
Error message from debugger back end:
evaluation of this expression requires the program to have a function "malloc".

===

 

It seems like It recommends me to use "malloc".

But I don't want it.

I need static array.

 

 

Please help me

 

Thanks

Phillip,

Best regards

0 Kudos
Reply
1 Solution
12,225 Views
kmh48301
Contributor IV

Sorry. I just solved problem.

i should have used 'volatile' keyword.

View solution in original post

0 Kudos
Reply
2 Replies
5,493 Views
sona1
Contributor I

I am using s32k144 i am getting this error

Multiple errors reported.

1) Unable to create variable object

2) Failed to execute MI command:
-var-create - * "(float)((i_alpha * acos((double)theta_elec)) + (i_beta * asin((double)theta_elec)))"
Error message from debugger back end:
'acos' has unknown return type; cast the call to its declared return type

3) Failed to execute MI command:
-data-evaluate-expression "(float)((i_alpha * acos((double)theta_elec)) + (i_beta * asin((double)theta_elec)))"
Error message from debugger back end:
'acos' has unknown return type; cast the call to its declared return type

4) Failed to execute MI command:
-var-create - * "(float)((i_alpha * acos((double)theta_elec)) + (i_beta * asin((double)theta_elec)))"
Error message from debugger back end:
'acos' has unknown return type; cast the call to its declared return type

0 Kudos
Reply
12,226 Views
kmh48301
Contributor IV

Sorry. I just solved problem.

i should have used 'volatile' keyword.

0 Kudos
Reply