Exporting Array/Memory data from S32DS to Host system ?

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

Exporting Array/Memory data from S32DS to Host system ?

2,626件の閲覧回数
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 ?

ラベル(2)
タグ(3)
0 件の賞賛
返信
1 返信

2,343件の閲覧回数
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 件の賞賛
返信