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
6,530 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
1 Solution
6,523 Views
kmh48301
Contributor IV

Sorry. I just solved problem.

i should have used 'volatile' keyword.

View solution in original post

0 Kudos
1 Reply
6,524 Views
kmh48301
Contributor IV

Sorry. I just solved problem.

i should have used 'volatile' keyword.

0 Kudos