This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Segger embedded studio does not display a static global variable in the watch window correctly

I am using the nRF52840 development kit and running the SPI peripheral example in SDK 15.

I am having trouble displaying a static value in my watch window.

static const uint8_t m_length to the watch window it has the wrong value

If I change the code to

static uint8_t m_length it does not display a value.

If I change the code to

uint8_t m_length

it has the correct value.

I think all of these should display the same value in my watch window.

can you tell what I am doing wrong to get it to display incorrectly with the NORDIC supplied example for Segger Embedded Stuido.

This gives the  correct which is 0x03.

This gives the wrong value for m_length  0x3b

This does not give a value at all.

This is the version of Segger I am running.

This is my source file.  I started with SPI as an example and I am working on a FANSTEL BT840 evaluation board.

Parents Reply Children
Related