Wednesday, February 21st 2018, 12:31am 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.

v01d

Beginner

Date of registration: Feb 29th 2016

Posts: 87

1

Friday, December 15th 2017, 8:04am

[SOLVED] how to add symbols file to Ozone when loaded bin

How do I specify file with symbols for debugging when I've uploaded a *.bin file to target?

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 707

2

Friday, December 15th 2017, 2:01pm

Hello,

For clarification, what exactly is your setup/are you trying to achieve?
Are you downloading an extra binary during the debug session or is the binary file your application you want to debug?

Best regards,
Nino

v01d

Beginner

Date of registration: Feb 29th 2016

Posts: 87

3

Sunday, December 17th 2017, 12:46am

I'm trying to load a *.bin file built with external system, it is the one to be debugged, to be loaded at address specified by me.


I want to use symbols file to be loaded separately. (this is to do with how it was built).

For example, this setup is possible with DS-5 studio: you can load bin, specify symbols file from an elf later, and then also trigger re-load symbols at offset, they have console for this
Which is all handy for a self-relocating code

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 707

4

Monday, December 18th 2017, 9:19am

Hello,

This is also possible in Ozone.
It is described in detail in the Ozone user manual in chapters 6 and 7.7/7.8.
There you will find all options and combinations of downloading files and loading the according elf files and other options as well.

Best regards,
Nino

v01d

Beginner

Date of registration: Feb 29th 2016

Posts: 87

5

Tuesday, December 19th 2017, 1:41am

Hello,

This is also possible in Ozone.
It is described in detail in the Ozone user manual in chapters 6 and 7.7/7.8.
There you will find all options and combinations of downloading files and loading the according elf files and other options as well.

Best regards,
Nino
Chapter 6 is Scripting interface, and 7 is Appendix , 7.7 Action Tables, 7.8 User Actions.

Which one deals specifically with loading first a bin image followed by symbols? Do you have example?

Chapter 5, sec 5.3.1 - 5.3.2 seems to suggest that this setup is not possible to do with Ozone.
When I specify a bin file to Ozone, it doesn't even ask me for load address for some reason (unlike ES).

Please provide example then for how to setup this up - first load bin, then specify symbol file with elf. And how to re-trigger symbol reload at different offset.

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 707

6

Tuesday, December 19th 2017, 2:45pm

Hi,

Quoted

Please provide example then for how to setup this up - first load bin, then specify symbol file with elf. And how to re-trigger symbol reload at different offset.

All this information is available in the current Ozone manual. Please familiarize yourself with the documentation of our products before opening numerous threads.
Currently about 20 % off all threads in the last couple of weeks were started by you. Our average customer has has one question. So we are quite confident that you will find all information you are looking for in the documentation provided.
Should you of course find mistakes or missing information feel free to contact us.

Now back to topic.
The Action Tables show you all available commands for Ozone.
The User Actions show all commands explained with prototypes.
Chapter 6 shows you where and how you can use all these commands in the Ozone project file.

To load the elf file you can use File.Open.
To download the bin you can use Target.LoadMemory.
To relocate the symbols use Project.RelocateSymbols.

Best regards,
Nino

v01d

Beginner

Date of registration: Feb 29th 2016

Posts: 87

7

Wednesday, December 20th 2017, 2:28am

Hi,
Thanks for replying

Quoted

Please familiarize yourself with the documentation of our products before opening numerous threads.
This is my first Ozone related thread. Which other "numerous" ozone related thread you refer to?

Quoted

Now back to topic.
Yes please stick to the topic rather, than complaining about me asking questions?

Thank you for the useful part of that reply which I will try asap, no information passed will be wasted.

This post has been edited 1 times, last edit by "v01d" (Dec 20th 2017, 3:22am)