Exporting Array/Memory data from S32DS to Host system ?

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

Exporting Array/Memory data from S32DS to Host system ?

1,480 Views
markthompson170
Contributor III

Hi

I need want to export the contents of an array to so I can plot it.

How do I export/copy/paste data from the debugger (S32DS) to my host system ?

Labels (2)
0 Kudos
1 Reply

1,197 Views
stanish
NXP Employee
NXP Employee

Hello Mark,

there are several options:

1) You can either printf() it using semihosting console (currently supported by S32DS for ARM).

pastedImage_1.png

pastedImage_2.png

or you can copy&paste array directly in the Expression View:

pastedImage_4.png

Pasted array:

array[0] float 1 
array[1] float 2 
array[2] float 3 
array[3] float 4.5 

or you can perform memory dump of your "array" object:

pastedImage_7.pngpastedImage_8.png

There are several settings to customize the view (e.g. number of columns, precision...):

pastedImage_10.png

You can also copy&paste the content directly from view or export the dump as a binary/srec file (raw data):

pastedImage_13.png

Pasted array:

0x1FFFF000 1.000000E0 
0x1FFFF004 2.000000E0 
0x1FFFF008 3.000000E0 
0x1FFFF00C 4.500000E0 

pastedImage_17.png

exported raw binary file "array.txt":

0000803F 00000040 00004040 00009040

Hope it helps!

Stan

0 Kudos