[SOLVED/OR] J-scope: issue using same name of a single variable and member of a structure

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

  • [SOLVED/OR] J-scope: issue using same name of a single variable and member of a structure

    Hello,

    unfortunately I observed an issue using variables with the same name as members in structures.
    Example:

    C Source Code

    1. int16_t speed;
    2. typedef struct {
    3. int16_t pos;
    4. int16_t speed;
    5. } scope_t;
    6. scope_t scopeVariable;


    On creating a J-Sope project scoping "scopeVariable.speed", it is scoped correctly. But when you store this project, and reopen it, the adress of the variables to be scope is updated, which is great!, but the address of "scopeVariable.speed" is going to be replaced by the adress of "speed" which is off course not correct.

    I'd also would prefere to be able to see the whole name of a variable in the elements list in J-Scope. Currently only "speed" is shown, when scoping "scopeVariable.speed".

    Thanks for your support,
    Christian
  • Hello Christian,

    thanks for your suggestions. We are planning to improve the handling of variables in saved projects for the next version, so structures (and arrays too) can be updated on reopening as normal variables.

    Best regards,
    Arne
    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.