Compiler issue

Comments

4 comments

  • Avatar
    Paul Curtis

    Obviously (or not so obviously) the compiler understands that i0.NewDataFromEeprom

    0
    Comment actions Permalink
  • Avatar
    Henry

    Hello Paul,

    could you go into more details, please?

    Why is i0.NewDataFromEeprom not checked any longer?

    What is my mistake?

    Regards,

    Henry

    0
    Comment actions Permalink
  • Avatar
    Paul Curtis

    Your mistake is you did not use volatile.  Please go and read a good book on C to understand volatile correctly.

    0
    Comment actions Permalink
  • Avatar
    Henry

    I did not expect that volatile would make any difference in the same project, meaning that it is ok. with the RAM configuration but not with the FLASH configuration. Anyway, that solved the problem

    Thanks for your help!

    0
    Comment actions Permalink

Please sign in to leave a comment.