Can I use a script with MCUXpresso LinkServer debug sessions?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can I use a script with MCUXpresso LinkServer debug sessions?

Jump to solution
2,754 Views
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 Kudos
Reply
1 Solution
2,706 Views
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.

View solution in original post

0 Kudos
Reply
3 Replies
2,733 Views
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 Kudos
Reply
2,707 Views
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 Kudos
Reply
2,684 Views
converse
Senior Contributor V

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

 

 

0 Kudos
Reply