Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Could not get global variable information" #12

Open
Daniel-Vindio opened this issue Jan 16, 2022 · 1 comment
Open

"Could not get global variable information" #12

Daniel-Vindio opened this issue Jan 16, 2022 · 1 comment

Comments

@Daniel-Vindio
Copy link

Daniel-Vindio commented Jan 16, 2022

Hi,
While debugging a C program, although variables are detected, their current value is not displayed. Instead, messages appear informing you that the variable object is not found.

Captura de pantalla de 2022-01-16 20-51-04

The notification messages say somethong like:

Could not get global variable information:
from var-update --all-values var_global_<variable_name>

or

Could not get global variable information:
from var-update --all-values var_local_<variable_name>

Any hint or help will be appreciated. Thank you!

Some details about the system:

  • PlatformIO Core 5.2.4 / Home 3.4.0.
  • Visual Studio Code: 1.63.2.
  • framework = freedom-e-sdk.
  • Operating system: Ubuntu 20.04.3 LTS.
  • Board: RED-V Thing Plus.

This is my platformio.ini:

[env:sparkfun_thing_plus_v]
platform = sifive
board = sparkfun_thing_plus_v
framework = freedom-e-sdk

And this is the very simple code I'm trying to debug, as a tutorial

// tutorial.c
// Daniel Gutierrez. 16/01/22. audobra@gmail.com
// Dot product code to learn the PlatformIO tools

#define DIM 3

double dotproduct(int n, double a[], double b[]) {
    volatile int i;
    double sum = 0;

    for (i=0; i<n; i++) {
        sum += a[i]*a[i];
    }
    return sum;
}

int main(void) {
    double x[DIM] = {3, 4, 5}; // x is an array of size 3(DIM)
    double y[DIM] = {1, 2, 3}; // same as y
    double dot;

    dot = dotproduct(DIM, x, y);
    return dot;
}
@withoutcandy
Copy link

I have same problems,if you solve it now,please give me some information,i'll appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants