Can I use a script with MCUXpresso LinkServer debug sessions?

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

Can I use a script with MCUXpresso LinkServer debug sessions?

跳至解决方案
2,750 次查看
robert_s
Contributor III

Hi,

Firstly I'm new to MCUXpresso!...

I have built one of the demo SDK examples for the 'i.MX RT 1170' (https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/i-mx-rt1170-eva... and am able start and debug via a LinkServer Debug Configuration.

By default, the debugger stops at the first executable statement in main().

I would then like the debug session to execute a 'script', such as a .gdb file.

I tried creating a file for the 'GDB command file' under the 'GDB Debugger' tab of my Debug Configuration, but always fails with:

<edited>

    Error in final launch sequence:

    Failed to execute MI command:
    source .gdb
    Error message from debugger back end:
    .gdb:2: Error in sourced command file:
    The program is not being run.

So the .gdb file does get used, even for a LinkServer seesion

Thank you for help you can provide.

0 项奖励
回复
1 解答
2,702 次查看
robert_s
Contributor III

Thank you TIC!

I have had a look at the User Guide but I don't think it provides much help for working with gdb.

In the end I believe this is simply that 'run' is not a valid command to use in a gdb script (i.e. .gdbinit).

'run' is achieved by unchecking 'Debug configurations -> Startup -> Run Commands -> Set breakpoint at:'

Regards.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,729 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
To provide the fastest possible support, I'd recommend you try to refer to the MCUXpresso IDE User Guide.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复
2,703 次查看
robert_s
Contributor III

Thank you TIC!

I have had a look at the User Guide but I don't think it provides much help for working with gdb.

In the end I believe this is simply that 'run' is not a valid command to use in a gdb script (i.e. .gdbinit).

'run' is achieved by unchecking 'Debug configurations -> Startup -> Run Commands -> Set breakpoint at:'

Regards.

0 项奖励
回复
2,680 次查看
converse
Senior Contributor V

For a remote target, 'run' is not an appropriate command. The command you want is 'continue'.

 

 

0 项奖励
回复