gdb script with LPCXpresso

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

gdb script with LPCXpresso

1,029件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jerry.nguyen on Tue Feb 08 15:53:43 MST 2011
Hi All,

I would want to run a script from gdb console to automatically set some pattern data to RAM...Can LPCXpresso support it? normally we can use the monitor command

monitor long 0x10007000 = 0x1234

But it seems does not work with LPCXpresso

Thanks in advance
Jerry
0 件の賞賛
返信
4 返答(返信)

990件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jerry.nguyen on Wed Feb 09 02:52:55 MST 2011
oh, set $r0 = xx work...thanks any way
0 件の賞賛
返信

990件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jerry.nguyen on Wed Feb 09 02:25:06 MST 2011
thank you very much for the info :) what is the command to set register? let say i want to set R0 and CONTROL?
0 件の賞賛
返信

990件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed Feb 09 01:44:41 MST 2011
Or use the direct gdb command [FONT=Courier New][SIZE=1]set {int}0x10007000 = 0x1234[/SIZE][/FONT]

Regards,
CodeRedSupport
0 件の賞賛
返信

990件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Feb 08 19:09:40 MST 2011
This works only with the remote you are used to. The LPCXpresso remotes do not support a "long" command. I suggest you open a Memory view to this address, and edit the contents of the long word.

CodeRedSupport


Quote: jerry.nguyen
Hi All,

I would want to run a script from gdb console to automatically set some pattern data to RAM...Can LPCXpresso support it? normally we can use the monitor command

monitor long 0x10007000 = 0x1234

But it seems does not work with LPCXpresso

Thanks in advance
Jerry

0 件の賞賛
返信