AnsweredAssumed Answered

Volatile using memset?

Question asked by CristiS on Nov 28, 2017
Latest reply on Dec 5, 2017 by CristiS

Hi there,

I have a project that I inherited that uses VisualDSP++ 5.0. It runs on a BF561. I get a compiler warning/remark that one of my global variables is modified in an interrupt routine so I might want to make it volatile. However, when I make it volatile, I get an error for call to memset() with that variable. Any idea why that is or what I can do to fix it? I was able to typecast the variable pointer to (void *) and make the code compile with no warning/remarks, but then my code is broken and won't run correctly. Any help you can offer would be appreciated.

Thanks!

Outcomes