This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PEC and const Variable

I am just starting with the PEC in an XC167. Can someone tell me how to output a string that is not a 'const' string?

The example PEC code from Keil works - code is posted here: http://www.keil.com/support/docs/688.htm - 6.2K - Jul 15, 2005

If the 'const' modifier is removed, the output is garbage. How do I modify the string? Also, what magic is the const modifier doing?

Any help is welcome.

Without the const modifier, maybe the string is optimized out?

0