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

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • 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
  • 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
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    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 you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • 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?
  • 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
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    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 you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • 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
  • 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