Failed to execute MI command:

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Failed to execute MI command:

ソリューションへジャンプ
12,229件の閲覧回数
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 解決策
12,222件の閲覧回数
kmh48301
Contributor IV

Sorry. I just solved problem.

i should have used 'volatile' keyword.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
5,490件の閲覧回数
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 件の賞賛
返信
12,223件の閲覧回数
kmh48301
Contributor IV

Sorry. I just solved problem.

i should have used 'volatile' keyword.

0 件の賞賛
返信