Monday, December 11th 2017, 6:42am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

SamDev

Beginner

Date of registration: May 11th 2016

Posts: 14

1

Wednesday, May 11th 2016, 6:09pm

[Segger Ozone]GDB commands

Hello,
It is possible to call GDB commands inside scripts in "SeggerOzone.jdebug" file?
Thanks!

SEGGER - Johannes

Super Moderator

Date of registration: Aug 31st 2012

Posts: 364

2

Thursday, May 12th 2016, 11:21am

Hello,

No, Ozone does not use GDB, but has its own commands.
In general everything which can be done with GDB can be done with Ozone, too.

Have a look at the Ozone User Manual for a list of available commands.

Best regards
Johannes

SamDev

Beginner

Date of registration: May 11th 2016

Posts: 14

3

Thursday, May 12th 2016, 2:25pm

Thanks for the reply.
I already had a look to Ozone User Manual but did not find what I wanted.

1) I'm indeed trying to find an equivalent of "GDB waithalt(time)" for Ozone which would wait for a given amount of time during execution before doing a Debug.Halt().
I can't use Util.Sleep() because I don't want to pause the current operation but just to have a "halt" after the timeout has expired.
Do you know if it is feasible with Ozone own commands?

2) I need to call a batch file. In GDB, I would use "shell program_name...". Is it possible to call an external batch file from Ozone?
3) And I would need also an equivalent to "restore filename [binary] bias start end".
Indeed, I need to take parts of a binary file, not starting at address 0 and not finishing at the end of the file. Target.LoadMemory() just allows to specify the destination address but not the content area taken into the binary file.
Thanks for your precious help!

This post has been edited 3 times, last edit by "SamDev" (May 12th 2016, 3:49pm)