[SOLVED] Global variables are missing in J-Scope

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

  • [SOLVED] Global variables are missing in J-Scope

    Hello,

    I've noticed that most of my global variables are missing in J-scope symbol selector. All my local variables in their corresponding C-file are showing however.

    I'm using VisualGDB with arm-eabi gcc compiler for a stm32f4 microcontroller.

    I've made sure that the optimization is completely off, i.e CFLAGS and CXXFLAGS set to -O0 in makefile settings.

    Don't know what else to check. Any help would be appreciated!
  • Hi,

    which version of J-Scope do you use?
    Would it be possible to provide us with the .elf file so that we can reproduce the issue?

    Best regards,
    Niklas
    Would you like to be added to the J-Link software update notification list, so you get informed automatically when a new version becomes available?
    Just write me a PM or in case you want to subscribe to it yourself, please use this link: Link
    Notification for J-Link, J-Link Debugger, SystemView & J-Scope: Link
    Notification for Embedded Studio: Link
  • Hi, thanks for the fast response!

    I'm using version 5.10d. Attaching the .elf file for a simple example project that shows the problem. mems_visualGDB.zip


    What i discovered was that j-scope seems to be unable to see a global variable that is declared in main.h with the extern keyword, then this variable is defined in main.c as follows:

    In main.h
    extern uint32_t global_cnt;


    in main.c
    uint32_t global_cnt;

    when opening j-scope the variable global_cnt simply does not show up. But maybe this is how it suppose to be?

    Regards
    Mikael
  • Hi Mikael,


    thanks for the feedback.
    Good to hear that you are up and running!


    Best regards,
    Niklas
    Would you like to be added to the J-Link software update notification list, so you get informed automatically when a new version becomes available?
    Just write me a PM or in case you want to subscribe to it yourself, please use this link: Link
    Notification for J-Link, J-Link Debugger, SystemView & J-Scope: Link
    Notification for Embedded Studio: Link