[SOLVED] Add peripheral registers to Data Sampling (Data Graph / Timeline) view

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

  • [SOLVED] Add peripheral registers to Data Sampling (Data Graph / Timeline) view

    Hello, is it somehow possible to add peripheral registers to the data graph (timeline) window for graphical view.
    Thank you.
    [img]https://pbs.twimg.com/media/F39gnTfXIAAQnPE?format=png&name=900x900[/img]
    Images
    • DataGraph.png

      80.63 kB, 690×524, viewed 483 times
  • Hi skam,
    as long as the peripheral register is memory mapped and accessible, you can add a term such as
    *(unsigned int*)(0x080000000)
    to your Data Sampling window. Of course, you need to replace 0x080000000 with the address of your peripheral register. This should do the trick.

    Best regards

    -- AlexD
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hi Alex,
    thanks for your response. This works like a charm.

    Just a small observation. Not very important though.
    You can see that in the 'Data sampling' window I have selected the expression to be displayed in Hex, where as the Timeline data graph by default shown the expression in decimal. I could not find a way to change the display type in the graph. Like said not very important and jfyi.

    Kind regards
    Images
    • peripheralregplot.png

      89.76 kB, 1,218×607, viewed 345 times
  • Hi skam,
    this is intended. Hex numbers are normally interpreted as unsigned, however in the graph window numbers are considered being signed.
    Best regards
    -- AlexD
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.