Monday, April 21st 2014, 11:36am 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.

bebauer

Beginner

Date of registration: Apr 28th 2011

Posts: 5

Location: Austria

1

Friday, April 29th 2011, 8:18am

SEGGER SAM-ICE debugging: Eclipse does not show variable contents when using mouse hover effect

Hello,

I use the SEGGER SAM-ICE as external tool in eclipse and I want to debug with the gdb server. I can set breakpoints and step to the breakpoints but when I move with the mouse over a variable I got some alphanumeric chars but not the content of the variable. Also in the variables view are only some alphanumeric chars for the variables like "'ffd§34322ld;;;".

Does anyone know a solution for this problem?

Thanks

Bernhard

SEGGER - Alex

Super Moderator

Date of registration: Dec 18th 2007

Posts: 1,151

2

Friday, April 29th 2011, 3:53pm

Hi Bernhard,

Does not sound like a J-Link problem for me,
since J-Link does not know about variables
(for J-Link when Eclipse is reading a variable's value it is a simple read register / memory read request)

Maybe there are different "view options" for variables in Eclipse (decimal, hexadecimal, ASCII, ...) and you do not have selected the desired one?


Best regards
Alex

bebauer

Beginner

Date of registration: Apr 28th 2011

Posts: 5

Location: Austria

3

Thursday, February 16th 2012, 12:48pm

Hello,



I changed the variable options but the same happens. There are no reasonable values for the variables.



Thanks,



Bernhard

MikeQ

Beginner

Date of registration: Dec 3rd 2007

Posts: 16

4

Monday, February 20th 2012, 1:03am

Bernhard,

sounds like an Eclipse problem. In order to understand what is going on, can you
- Look at the log window of the J-Link Status & Control panel when you hover over the variable?
You should see a memory read of typically 4 bytes at the address of the variable.
- Open a memory window and look at the variable in the memory window?

bebauer

Beginner

Date of registration: Apr 28th 2011

Posts: 5

Location: Austria

5

Wednesday, February 22nd 2012, 2:14pm

Hello,



when I hover over the variable in the log windows nothing happens.

When I open the memory window I see 4 bytes, but what does it help for my problem.



Thanks,



Bernhard

SEGGER - Alex

Super Moderator

Date of registration: Dec 18th 2007

Posts: 1,151

6

Wednesday, February 22nd 2012, 5:38pm

Hi Bernhard,

What Mike suggested was to test the following:

a) Does reading of the memory region the variable is in work in general? <-- Yes, seems to be the case since in the memory window it works.
b) If you hover over the variable and nothing happens in the log windows, it seems that Eclipse is not even trying to read the variable value,
so it is nearly impossible that J-Link is the root cause of the problem.

Maybe we have some eclipse experts registered in this forum which can help here?


Best regards
Alex

bebauer

Beginner

Date of registration: Apr 28th 2011

Posts: 5

Location: Austria

7

Thursday, February 23rd 2012, 11:21am

Hello,



it would be great if a eclipse specialist can help me.



I heard it is possible that I use a false symbol format.

I tried to change the symbol format of the gcc compiler to dwarf with gcc -gdwarf-2, it compiles but that does not help.



Thanks,



Bernhard

bebauer

Beginner

Date of registration: Apr 28th 2011

Posts: 5

Location: Austria

8

Thursday, March 8th 2012, 9:33am

Hello,



I tried the Keil µvision plugin for eclipse and compiled my software with the Keil Compiler, now I can debug with SAM-ICE in Eclipse.

But why is it not possible to debug with eclipse when I compile with gcc?

Which configuration is necessary for the gcc compiler that it works with the gdb server?

Does anyone have an answer of this question?



Thanks,



Bernhard