gdb script with LPCXpresso

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

gdb script with LPCXpresso

1,108 次查看
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 回复数

1,069 次查看
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 项奖励
回复

1,069 次查看
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 项奖励
回复

1,069 次查看
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 项奖励
回复

1,069 次查看
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 项奖励
回复