Can I use a script with MCUXpresso LinkServer debug sessions?

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

Can I use a script with MCUXpresso LinkServer debug sessions?

ソリューションへジャンプ
2,756件の閲覧回数
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,708件の閲覧回数
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,735件の閲覧回数
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,709件の閲覧回数
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,686件の閲覧回数
converse
Senior Contributor V

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

 

 

0 件の賞賛
返信