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.

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;
}
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.
The notification messages say somethong like:
or
Any hint or help will be appreciated. Thank you!
Some details about the system:
This is my platformio.ini:
And this is the very simple code I'm trying to debug, as a tutorial