Tuesday, May 22nd 2018, 8:05am UTC+2

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.

v01d

Beginner

Date of registration: Feb 29th 2016

Posts: 121

1

Thursday, May 10th 2018, 7:38am

[Ozone] Bug: re-loading elf file looses attached commands to a bkpt

Ozone 2.56.12 .

You have set & attached commands to a bkpt in your project with Break.SetOnSrc, and Break.SetCommand. This works on project load.

If elf file been re-built, and Ozone asks you if you want to reload it and you do, the command for the bkpt is lost and you have to re-load the project.

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 1,048

2

Monday, May 14th 2018, 3:08pm

Hello,

Thank you for your inquiry.
The reported behaviour is intended. When Ozone asks to reload the program file it will only reload that, the elf file and not the Ozone project.
So OnProjectLoad does not get executed a second time and no BP is set.
If you want OnProjectLoad to be triggered the actual project must be reloaded and not just the elf file.
We will see if we can improve the pop up messages to make this behaviour more clear.

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/


v01d

Beginner

Date of registration: Feb 29th 2016

Posts: 121

3

Monday, May 14th 2018, 4:15pm

I think, the problem here is that it's lost the original break point which was set originally when project was loaded , before elf update.

Why would one want to loose any setting at all just because the binary was re-built? IMHO it's not correct to loose any break points, or any actions attached to them..

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 1,048

4

Friday, May 18th 2018, 11:14am

Hello,

The information is lost because the whole output and source files might have changed in the meantime which could lead to breakpoints set to unwanted sections.
To avoid this BPs are cleared after a rebuild. There are currently no plans to change this behaviour as it is expected by the majority of our customers.

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/


v01d

Beginner

Date of registration: Feb 29th 2016

Posts: 121

5

Yesterday, 7:55am

I see,

But it is a little odd, as I don't think I ever saw other such tool which would loose these breakpoints.

Say Eclipse : I don't see it loosing any break points, especially those that are not affected. (Say, break point at line 10 in main still stays at line 10 after any number of rebuilds ... )

Thanks