The global window in Nordic SES does not display the static global variables. I am probably missing something very simple, but I can't figure out how to view them when single stepping through a program. Could someone explain how they can be viewed?
The global window in Nordic SES does not display the static global variables. I am probably missing something very simple, but I can't figure out how to view them when single stepping through a program. Could someone explain how they can be viewed?
Add the variable to watch by -> Right click variable in debugger view and chose "Add variable to watch":
I've been seeing how well the watches work to inspect static global values and they have limitations. For example, when looking at the values of:
static nrfx_spim_xfer_desc_t xfer_desc = NRFX_SPIM_XFER_TRX(m_tx_buf, BF_LEN, m_rx_buf, BF_LEN);
only the first values are shown; I don't see an easy way of looking at the other values of the arrays: m_tx_buf and m_rx_buf. I think using watches to inspect static global values is a kludge and that this limitation needs to be fixed.
This is something that should be directed to the developers of the IDE i.e the Segger Fourm.
Thank you for your suggestion. Is there an IDE you would recommend for the nRF52840DK that does not have this limitation? Or would you recommend going to a Makefile GNU gcc / editor approach?
Thank you for your suggestion. Is there an IDE you would recommend for the nRF52840DK that does not have this limitation? Or would you recommend going to a Makefile GNU gcc / editor approach?
My preferred choice is SES so I can't really recommend anything else.