Failed to execute MI command:

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Failed to execute MI command:

跳至解决方案
13,507 次查看
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 项奖励
回复
1 解答
13,500 次查看
kmh48301
Contributor IV

Sorry. I just solved problem.

i should have used 'volatile' keyword.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
6,768 次查看
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 项奖励
回复
13,501 次查看
kmh48301
Contributor IV

Sorry. I just solved problem.

i should have used 'volatile' keyword.

0 项奖励
回复